Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Looking for next number in sequence

I am looking for a cell formula that will look for the largest number in
column "A" in another sheet and return the next number in the sequence.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Looking for next number in sequence

=MAX(Sheet2!A:A)+1

--
Gary''s Student - gsnu200777
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Looking for next number in sequence

Any suggestions on how to make this work when your cells have text?

At the top of my spreadsheet I have a cell that indicates the next number to
be used. This is because the entries are sorted by a field other than this
identifier, and new entries are added after a row has been inserted in the
correct place. Therefore, the cell at the top is important to know what next
number can be used.

The format for the "number" is C00001, C00002, C00003, ect. the =MAX(A:A)+1
solution does not work for me because the prompt inidactes that it will
ignore text.

Thanks!

"Gary''s Student" wrote:

=MAX(Sheet2!A:A)+1

--
Gary''s Student - gsnu200777

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Looking for next number in sequence


I would use similar but different approach. Remove the C and leading
zeros from the existing ID numbers, leaving only the real numbers.

Then highlight the entire range and apply a custom number format of:

C00000

That will cause 35 to appear as C00035...but the raw number of 35 is
still visible.

Then in the "next number" box at the top, just let is show the Raw
number to type next...36, not C00036. When they type in 36, it will
appear as C00036.

Now your MAX formula will work.


--
JBeaucaire
------------------------------------------------------------------------
JBeaucaire's Profile: http://www.thecodecage.com/forumz/member.php?userid=73
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=56427

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying by Sequence Number KevinUK Excel Discussion (Misc queries) 1 January 15th 08 06:21 PM
How can I match a random number with closest number from sequence? Matt Excel Worksheet Functions 4 August 3rd 06 01:22 AM
Number sequence Brento Excel Discussion (Misc queries) 3 July 15th 06 11:41 PM
indicate a missing number in a sequence mmock Excel Discussion (Misc queries) 13 February 22nd 06 03:23 AM
number sequence gap Judi Mason Excel Worksheet Functions 1 January 16th 06 07:08 PM


All times are GMT +1. The time now is 02:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"