+ Reply to Thread
Results 1 to 3 of 3

Use rightmost non-empty cell i address in a row.

  1. #1
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226

    Use rightmost non-empty cell i address in a row.

    Guys, in D2 I'd like to compare a target figure of C2 with the rightmost figure entered into the range E2:P2.
    How do I pick the rightmost non-empty cell address into my comparison formula?
    Thanks
    Regards,

    Gabor

    Protect trees.. maybe one day we need to climb back....

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,148

    Re: Use rightmost non-empty cell i address in a row.

    Try

    =LOOKUP(2,1/($E$2:$P$2<>""),$E$2:$P$2)

    to get right-most value

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Use rightmost non-empty cell i address in a row.

    If the values are numbers, you can use

    =LOOKUP(9.99999999999999E+307,$E$2:$P$2)

+ 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. Rightmost Data in a Cell Range
    By atwy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-13-2015, 04:58 AM
  2. Contents of Rightmost Cell
    By atwy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2015, 09:31 PM
  3. look for the rightmost cell with data
    By JakeAy in forum Excel General
    Replies: 2
    Last Post: 04-01-2010, 05:31 AM
  4. how to delete the 4 rightmost digits from a cell
    By charlene in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-29-2006, 10:15 AM
  5. Formula ? Return value from rightmost non-blank cell in a row of
    By tgdavis in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. Formula ? Return value from rightmost non-blank cell in a row of
    By tgdavis in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. Formula ? Return value from rightmost non-blank cell in a row of
    By tgdavis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-11-2005, 09:05 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