+ Reply to Thread
Results 1 to 5 of 5

MAX formula not reading the results of another formula

  1. #1
    Registered User
    Join Date
    03-17-2020
    Location
    Raleigh NC
    MS-Off Ver
    NC
    Posts
    2

    MAX formula not reading the results of another formula

    In columns B through F, I have VLOOKUP formulas that access another page in the same workbook. I have tried MAX and MAXA formulas to populate the largest result in column G. The MAX/MAXA formulas only show the result of 0

    example
    cell B1 is VLOOKUP(A1,'TAB1'!A:C,3,0) which results in 100
    cell C1 is VLOOKUP(A1,'TAB2'!A:C,3,0) which results in 120
    cell D1 is VLOOKUP(A1,'TAB3'!A:C,3,0) which results in 90
    cell E1 is VLOOKUP(A1,'TAB3'!A:C,3,0) which results in 130
    cell F1 is VLOOKUP(A1,'TAB5'!A:C,3,0) which results in 150

    my MAX formula in cell G1 is =MAX(B1:F1) which I figured would result in 150 but it actually results in 0 and that makes me cry

    I have also tried =MAX(B1,C1,D1,E1,F1) and both ways using =MAXA. The fact that I am using this formula across several columns versus rows should not impact this should it?

    I feel like this is so simple that I am missing something way to obvious to see, please help

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: MAX formula not reading the results of another formula

    can you load a sample sheet
    that should work, if the vlookup is returning a number and not text
    if text
    ADD value()
    Value(VLOOKUP(A1,'TAB1'!A:C,3,0))

    is the number right or left justified - if left , then text , if right should be a number
    Last edited by etaf; 03-17-2020 at 05:52 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: MAX formula not reading the results of another formula

    A sample file may be necessary for us to help debug this. My only contribution at this point is that I can replicate this behavior of both the MAX() and MAXA() functions if I fill a range with "numbers stored as text". My guess is that these return values from your lookup table are not real numbers, but numbers stored as text. The solution will be to convert them to real numbers. I would probably do it in the lookup table using any of these strategies https://support.office.com/en-us/art...1-c5bad0f0a885
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    03-17-2020
    Location
    Raleigh NC
    MS-Off Ver
    NC
    Posts
    2

    Re: MAX formula not reading the results of another formula

    etaf nailed it

    I had all the cells center aligned and did not realize the cells were in a text format

    Thank you

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: MAX formula not reading the results of another formula

    you are welcome

+ 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. Replies: 1
    Last Post: 01-06-2014, 03:54 AM
  2. Reading INDEX formula
    By chriswiec in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-19-2013, 03:24 AM
  3. Help with reading =MIN formula
    By ExcelNUBs in forum Excel General
    Replies: 1
    Last Post: 07-23-2012, 04:07 PM
  4. Formula for reading from another sheet
    By Rabi in forum Excel General
    Replies: 3
    Last Post: 05-19-2011, 03:22 PM
  5. Problem reading formula with ActiveCell.Formula
    By Matija in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2011, 06:10 AM
  6. Formula reading formula instead of cell content
    By roy.okinawa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-28-2005, 11:25 PM
  7. IF/AND Formula seems to only be reading 1st part of formula
    By Greg Bobak in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2005, 12:06 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