+ Reply to Thread
Results 1 to 15 of 15

Formula to find Max number in a column. Explanation please!

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-25-2013
    Location
    Longview, TX
    MS-Off Ver
    MS365
    Posts
    338

    Formula to find Max number in a column. Explanation please!

    Hello!

    I got this formula somewhere - I think I found it online - and it does what I need it to do, but I can't figure out WHY it works! I need to incorporate it into a larger formula, but I don't know the correct syntax, since I don't get it in the first place, LOL!

    I have a LONNNGG column of numbers and I need to figure out what row is the last occupied row. Trouble is, there may be some empty rows as well as the fact that there will be more rows added to the end.

    Anyway, here's the formula - It looks pretty simple, so it irritates me that I can't wrap my head around it.

    =MAX(MATCH(E1+306,A:A,1))
    I know what MAX does and I've used MATCH in other formulas, but where the heck does 306 come from?? Is it maybe just a random number that whoever wrote the formula came up with? Or might it be a number that's specific to the worksheet they were working on and it just happens to work on my small sample sheet? It that's the case, and my actual sheet might be anywhere from 10 to 6,000 rows or more, I assume that, at some point, the formula will get "broken".

    I really appreciate any "translation" to plain English that someone here can offer!

    Jenny

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: I can't figure out why this formula works. Can someone decipher it?

    Hi Jenny,

    Maybe updating your title to the forum rules would help!!!
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    06-25-2013
    Location
    Longview, TX
    MS-Off Ver
    MS365
    Posts
    338

    Re: I can't figure out why this formula works. Can someone decipher it?

    Hi Jeff,

    I'm not sure what's wrong with it. My problem is that I don't know why the formula does what it does and I need to know so that I can use the formula in other situations.

    Jenny

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: I can't figure out why this formula works. Can someone decipher it?

    Hi Jenny,

    That's somebodies concocted abreviation for a big number in Excel.

    The term "BigNum", which stands for "Big Number", is used to represent the largest allowed positive number in Excel, which is 9.99999999999999E+307
    You will see all sorts of variations, and this person happened to choose E1+306.

    Maybe this site will help

  5. #5
    Forum Contributor
    Join Date
    06-25-2013
    Location
    Longview, TX
    MS-Off Ver
    MS365
    Posts
    338

    Re: I can't figure out why this formula works. Can someone decipher it?

    Hi Jeff,

    I've been covered up in work and haven't gotten back here till now.

    So, I gather that you can't actually use the phrase "BigNum" in a formula, right? It didn't work when I tried it (which doesn't mean it won't work; just means I couldn't get it right)

    Jenny

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,108

    Re: Formula to find Max number in a column. Explanation please!

    I think, in this case, the MAX is redundant.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,108

    Re: Formula to find Max number in a column. Explanation please!

    Just use the examples you've seen, like
    Formula: copy to clipboard
    =(MATCH(9.9E+306,A:A,1))


    Note: the MAX is redundant here

  8. #8
    Forum Contributor
    Join Date
    06-25-2013
    Location
    Longview, TX
    MS-Off Ver
    MS365
    Posts
    338

    Re: Formula to find Max number in a column. Explanation please!

    Hi TMS,

    Thanks for the clarification!
    Yes, I removed the "MAX" with no ill effects, LOL! That makes it look cleaner; thank you!

    Jenny

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2507
    Posts
    13,809

    Re: Formula to find Max number in a column. Explanation please!

    Using the phrase "BigNum" in formula means that a large value is defined and named "BigNum" in Name Manager.
    Dave

  10. #10
    Forum Contributor
    Join Date
    06-25-2013
    Location
    Longview, TX
    MS-Off Ver
    MS365
    Posts
    338

    Re: Formula to find Max number in a column. Explanation please!

    Hi Dave,

    Ah, I see; that makes sense!

    Thank you!

    Jenny

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2507
    Posts
    13,809

    Re: Formula to find Max number in a column. Explanation please!

    You are welcome. Glad to help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  12. #12
    Forum Contributor
    Join Date
    06-25-2013
    Location
    Longview, TX
    MS-Off Ver
    MS365
    Posts
    338

    Re: Formula to find Max number in a column. Explanation please!

    Hi again, Dave.

    Darn, I KNEW I was forgetting something, LOL! I'll mark it SOLVED right now.

    Jenny

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,108

    Re: Formula to find Max number in a column. Explanation please!

    You're welcome.

    Either way, the formula only returns the row number of the highest row containing a numeric value, not the value. You could have a similar formula, MATCH("zzzzzz", A:A, 1), to find the highest row number of a text/alphanumeric string. Under those circumstance, you WOULD use MAX if the column contained a mixture of numeric and alphanumeric values. And you'd need to use INDEX with the row number returned to get the actual value.

  14. #14
    Forum Contributor
    Join Date
    06-25-2013
    Location
    Longview, TX
    MS-Off Ver
    MS365
    Posts
    338

    Re: Formula to find Max number in a column. Explanation please!

    Hi TMS,

    No, this is perfect! All I need is the row number; I don't care about the value in the cell. I just need the row number to use in another formula to establish the range I'm working with and that range changes as rows are added or taken away.

  15. #15
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2507
    Posts
    13,809

    Re: Formula to find Max number in a column. Explanation please!

    Thanks Jenny.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Formula to find last non-zero number in a column
    By FRANKinATLANTA in forum Excel General
    Replies: 11
    Last Post: 05-28-2014, 05:30 PM
  2. [SOLVED] Formula to find the number of times a row has the max value of the column
    By cheung in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-01-2014, 06:51 PM
  3. Replies: 3
    Last Post: 10-08-2013, 09:46 AM
  4. Formula: Find Last Number in Column by Color
    By mydragonstalents in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-26-2013, 10:56 AM
  5. [SOLVED] Explanation for formula that counts number of numeric characters
    By Hercules1946 in forum Excel General
    Replies: 3
    Last Post: 11-21-2012, 05:16 PM
  6. Explanation of a formula used to find multiple returns
    By brownsl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2009, 11:52 AM
  7. Replies: 0
    Last Post: 01-07-2005, 02:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1