+ Reply to Thread
Results 1 to 10 of 10

If isnumber lookup funciton not working

  1. #1
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    If isnumber lookup funciton not working

    Hi,

    I am attempting have excel look at two ranges. If it finds a value in A77 on the Final tab, in the range P2:P6 on the lists tab, then return the value in G77.

    If it finds one of the values in the range P7:P8, then divide the value in G77 by two.
    What am I missing?

    =IF(ISNUMBER(LOOKUP(A77,lists!$P$2:$P$6)),G77,IF(ISNUMBER(LOOKUP(A77,lists!$P$7:$P$8)),(G77/2)))

    Thank you

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: If isnumber lookup funciton not working

    Hi Bryden2008- The LOOKUP function assumes a sorted list and finds the largest value less than or equal to. So it's finding 9398 (TRUE) instead of FALSE, which would go to your second range. Give me a sec, I'll find an alternative.

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee

  3. #3
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Re: If isnumber lookup funciton not working

    Thank you!

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: If isnumber lookup funciton not working

    Try this:
    =IF(ISTEXT(A77),0,IF(COUNTIF(lists!$P$2:$P$6,A77)>0,G77,IF(COUNTIF(lists!$P$7:$P$8,A77)>0,G77/2)))

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee

  5. #5
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Re: If isnumber lookup funciton not working

    Worked perfectly.
    I forgot one request - if A77 is blank, how to not get false?

  6. #6
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Re: If isnumber lookup funciton not working

    SOAKERS INV USAGE
    SO2 3X10 RUBBER BACK OIL MAT 60 0

    It is returning 0 for P7 "SO2" when it should be dividing by 2 yes?

  7. #7
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: If isnumber lookup funciton not working

    Sorry, I thought the whole point to the ISNUMBER test was to achieve that. Try this:
    =IF(COUNTIF(lists!$P$2:$P$6,A77)>0,G77,IF(COUNTIF(lists!$P$7:$P$8,A77)>0,G77/2,""))

    The ,"" at the end shows empty if A77 is blank OR missing from the list.

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 05-29-2017 at 11:56 AM.

  8. #8
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Re: If isnumber lookup funciton not working

    Thank you!

  9. #9
    Registered User
    Join Date
    07-15-2015
    Location
    new hampshire
    MS-Off Ver
    Office 2010
    Posts
    83

    Re: If isnumber lookup funciton not working

    That is perfect, thank you leenich!

  10. #10
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: If isnumber lookup funciton not working

    Happy to help, thank you for the rep! If you're satisfied, please mark your thread as SOLVED (Thread Tools up top). Thanks-Lee

+ 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] My =IF(ISNUMBER(SEARCH Formula is Not Working
    By thanhie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-03-2022, 12:30 AM
  2. If ISNUMBER MATCH function not working.
    By eurycea in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-20-2018, 10:24 AM
  3. Substitute, lookup, isnumber help?
    By mjhaston in forum Excel General
    Replies: 6
    Last Post: 08-10-2011, 01:07 PM
  4. Isnumber, match, sumif,lookup
    By David Brown in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2011, 02:35 PM
  5. UPDATE ISNUMBER and nested FINDs not working as expected
    By johnmerlino in forum Excel General
    Replies: 4
    Last Post: 11-10-2010, 02:13 AM
  6. Lookup funciton to fill multiple cells?
    By jhammond10 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2008, 04:44 PM
  7. IsNumber is not working
    By korokke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2006, 12:40 PM

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