+ Reply to Thread
Results 1 to 5 of 5

Return last cell with value from row

  1. #1
    Registered User
    Join Date
    06-09-2022
    Location
    bristol england
    MS-Off Ver
    version 2205
    Posts
    2

    Return last cell with value from row

    Hi All,

    I am struggling to find a formula which will:

    Return the last cell which has a value from a selected row.

    To give a brief summary, I have data in rows. I will update this data periodically. I would like a formula which will set at the end of the data array that will return the last cell which has a value.

    Regards

    Kyle

  2. #2
    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
    43,984

    Re: Return last cell with value from row

    Not entirely clear what you want, but maybe:

    =LOOKUP(2,1/(A1:A15<>""),A1:A15)
    Attached Files Attached Files
    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

  3. #3
    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,418

    Re: Return last cell with value from row

    Welcome to the forum.

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT a release number like 2205) 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.

    Assuming you want the VALUE in that cell, and not its address:

    =LOOKUP(2,1/(A2:ZZZ2<>""),A2:ZZZ2)

    Make the array as wide as you need it to be.
    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.

  4. #4
    Registered User
    Join Date
    06-09-2022
    Location
    bristol england
    MS-Off Ver
    version 2205
    Posts
    2

    Re: Return last cell with value from row

    Hi Glenn,

    It is along the right tracks, I did try a similar formula,

    However, I believe this formula looks down the column for a value, I would like it to look along the row.

    Regards

  5. #5
    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,418

    Re: Return last cell with value from row

    Did you look at my proposal, Kyle, which is for a row???

    Here it is again:

    =LOOKUP(2,1/(A2:ZZZ2<>""),A2:ZZZ2)

    Please update your forum profile as I requested. Thanks.
    Last edited by AliGW; 06-28-2022 at 05:17 AM. Reason: Added formula (repeat of previous post).

+ 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. Vlookup return #N/A but cell equal to cell return TRUE
    By rzakhanov in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-20-2022, 04:33 AM
  2. Replies: 1
    Last Post: 09-18-2021, 01:29 PM
  3. [SOLVED] Return the value of a cell if blank otherwise return empty cell
    By Oghenovo in forum Office 365
    Replies: 4
    Last Post: 07-29-2021, 07:10 AM
  4. [SOLVED] How to return a sum only if a specific cell contains data, else return blank cell
    By Teeay5324 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-03-2017, 11:18 AM
  5. [SOLVED] How to return address of the column or cell I select, not just return the value?
    By qzqzjcjp in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-18-2014, 04:57 PM
  6. Replies: 12
    Last Post: 10-10-2013, 10:02 AM
  7. Replies: 0
    Last Post: 02-20-2012, 09:43 AM

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