+ Reply to Thread
Results 1 to 11 of 11

In dummies terms what does LOOKUP and ISBLANK in the below formula trying to achieve

  1. #1
    Registered User
    Join Date
    03-15-2022
    Location
    london
    MS-Off Ver
    Microsoft Office 365 64 bit
    Posts
    5

    In dummies terms what does LOOKUP and ISBLANK in the below formula trying to achieve

    Hi Guys,

    I'm trying to figure out in simplistic terms what the below formula is trying to achieve. I'm not sure why O35:O75 is being repeated in this formula.

    =LOOKUP(2,1/(1-ISBLANK(O35:O75)),O35:O75)

    Thanks in advance.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: In dummies terms what does LOOKUP and ISBLANK in the below formula trying to achieve

    Welcome to the forum,

    Trying to achieve or is achieveing?

    The first mention of the range is for the criterion, the second is for the values to be returned for rows that meet the criterion.

    LOOKUP(2,1/ ... will look for the LAST in the range to meet the criterion.

    ISBLANK looks for cells that are blank.

    What is the issue you are having with it, or is it just a case of trying to understand it?

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-15-2022
    Location
    london
    MS-Off Ver
    Microsoft Office 365 64 bit
    Posts
    5

    Re: In dummies terms what does LOOKUP and ISBLANK in the below formula trying to achieve

    Trying to understand it..... "LOOKUP(2,1/ ... will look for the LAST in the range to meet the criterion".... not sure what you mean.... sorry i'm having one of those days.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: In dummies terms what does LOOKUP and ISBLANK in the below formula trying to achieve

    It is a very strange looking formula... thta will return the value of the last non-blank cell in the range. 99.99% of the time someone wants to do that, they will use:

    =IFERROR(LOOKUP(2,1/(O35:O75<>""),O35:O75),"")

    However, your formula.. this bit:

    (1-ISBLANK(O35:O75))

    returns 1 if the cell contains a value, zero if it doesn't.

    One (1) is then divided by that array of numbers, returning 1 for 1 and #DIV/0 error for zero. LOOKUP(2... tells Excel to look for 2... there isn't one, so Excel simply returns the value in O35:O75 that corresponds to the last 1
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    03-15-2022
    Location
    london
    MS-Off Ver
    Microsoft Office 365 64 bit
    Posts
    5

    Re: In dummies terms what does LOOKUP and ISBLANK in the below formula trying to achieve

    Thanks for the replies, I'm trying to figure out whether the calculation is correct in a spreadsheet. The figure should be 30.37 so I'm told but its being calculated as 29.7274384 which is pretty close.

    Attachment 772532

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: In dummies terms what does LOOKUP and ISBLANK in the below formula trying to achieve

    It is correctly returning the last non-blank value in the range. No calculation is being done.

    There are instructions at the top of the page explaining how to attach your sample workbook (NOT a screenshot of it).

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Please update your profile as requested earlier.
    Attached Images Attached Images

  7. #7
    Registered User
    Join Date
    03-15-2022
    Location
    london
    MS-Off Ver
    Microsoft Office 365 64 bit
    Posts
    5

    Re: In dummies terms what does LOOKUP and ISBLANK in the below formula trying to achieve

    will do.... thanks

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: In dummies terms what does LOOKUP and ISBLANK in the below formula trying to achieve

    Yea... we need to see the sheet.... Excel is never "pretty close" It's unforgiving... yes or no; black or white... correct or incorrect.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: In dummies terms what does LOOKUP and ISBLANK in the below formula trying to achieve

    Your formula is correctly returning the last non-blank cell's value in the range. There is no calculation - why are you expecting a figure of 30.37? What is the calculation you wish to perform?

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: In dummies terms what does LOOKUP and ISBLANK in the below formula trying to achieve

    Are there formulae in O35:O75... or values? What else is there in the entire range?

  11. #11
    Registered User
    Join Date
    03-15-2022
    Location
    london
    MS-Off Ver
    Microsoft Office 365 64 bit
    Posts
    5

    Re: In dummies terms what does LOOKUP and ISBLANK in the below formula trying to achieve

    I'll get you the excel spreadsheet in the next hour i'll make it readable.... thanks guys for all your help

+ 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] LOOKUP where there are approximate matches with the lookup value - how to achieve?
    By AliJay64 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-15-2022, 10:40 AM
  2. [SOLVED] Formula to search specific set of terms in a string and return any found terms
    By fk_ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-12-2020, 10:26 AM
  3. [SOLVED] Help adding ISBLANK to LOOKUP formula
    By NonEventHorizon in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-04-2019, 11:48 AM
  4. [SOLVED] How to achieve this lookup/index & match with IF function?
    By chaiyya345 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-30-2019, 01:23 AM
  5. [SOLVED] finding terms in a cell from a lookup table
    By charliec in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2017, 04:09 PM
  6. Replies: 1
    Last Post: 01-26-2015, 04:42 PM
  7. Help with ISBLANK function referring to a cell with another ISBLANK formula
    By camdameron in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-23-2011, 12:45 PM

Tags for this Thread

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