PPRuNe Forums

PPRuNe Forums (https://www.pprune.org/)
-   Computer/Internet Issues & Troubleshooting (https://www.pprune.org/computer-internet-issues-troubleshooting-46/)
-   -   MAX A query (https://www.pprune.org/computer-internet-issues-troubleshooting/301193-max-query.html)

Parapunter 20th November 2007 11:37

MAX A query
 
Hi all, can't find this on a search, sooo,

I have a spreadsheet that I use for business. Within it, each job is allocated a unique job reference & this is calculated sequentially by using MAXA (range)+1 so that the formula finds the highest value in the range & adds 1 to give the next order number.

Thing is, this morning I came up order no. 10,000 & I would like to reset it to one. Obviously MAXA won't do that, so is there a way, bearing in mind that if I reset the range, the high 999x job numbers are mixed on the sheet with the desired 1, 2 range etc. because the sheet is necessarily ordered by date rather than job number.:confused:

Keef 20th November 2007 13:28

The only idea I can come up with is to keep going at 10,000 plus, but subtract 10,000 from the number displayed if it's >10,000.

Parapunter 20th November 2007 13:33

Thanks Keef. =MAXA(range)-9999! Duh!!! I think I may have left my brain on the bus.:ugh:

Keef 20th November 2007 13:47

I suspect that may give you an answer based on entry number 9999 or 10000 for each new entry because the next entry won't trigger MAXA.

Let the count continue above 10,000 but subtract 10,000 when displaying.

Parapunter 20th November 2007 14:20

Actually, it didn't work quite as well as I had hoped, so what I've done as a workaround is to shift the range to count from around five, which is about where the new numbers start to become sequential. That works but it is dirty & would fail if say job 9987 was rebooked into next week for example.


All times are GMT. The time now is 12:17.


Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.