+ Reply to Thread
Results 1 to 4 of 4

Locating the rightmost value in a row

  1. #1
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Newport, England
    MS-Off Ver
    Excel 2013 Windows
    Posts
    144

    Locating the rightmost value in a row

    Hi,

    I am wondering if someone could possible help?

    I have a large sparse data sheet and I am struggling to work out how to go a couple of things...

    COLA - I want to return the highest value in the array c1:z1 (for instance), and if no data present then returns a blank.

    COLB- I want to return the rightmost value in teh same array and also return a blank if no data present.

    many thanks in advance!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Locating the rightmost value in a row

    Try this in A1:

    =IF(COUNT(C1:Z1)=0,"",MAX(C1:Z1))

    and this in B1:

    =IF(COUNT(C1:Z1)=0,"",LOOKUP(10E10,C1:Z1))

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,492

    Re: Locating the rightmost value in a row

    Highest value:
    =MAX(C1:Z1)
    Rightmost value:
    =IFERROR(LOOKUP(2,1/C1:Z1,C1:Z1),"")
    Quang PT

  4. #4
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Newport, England
    MS-Off Ver
    Excel 2013 Windows
    Posts
    144

    Re: Locating the rightmost value in a row

    Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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