+ Reply to Thread
Results 1 to 5 of 5

Rightmost Data in a Cell Range

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel
    Posts
    39

    Rightmost Data in a Cell Range

    Hi everyone,

    I'm looking to build a vba formula that takes a cell row range (eg. A5:A25) and outputs the data of the rightmost cell with data and to ignore blanks. The range includes cells that contain either text, numbers or blanks.

    Thanks in advance!

  2. #2
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Rightmost Data in a Cell Range

    Please upload excel file with desired output ...

  3. #3
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Rightmost Data in a Cell Range

    Are you restricted to VBA?

    If you require a normal Excel function, you may try this -

    =LOOKUP(2,1/NOT(ISBLANK(A5:A25)),A5:A25)
    Cheers!
    Deep Dave

  4. #4
    Registered User
    Join Date
    06-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel
    Posts
    39

    Re: Rightmost Data in a Cell Range

    this works great thanks Dave!

  5. #5
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Rightmost Data in a Cell Range

    Glad it helped!

+ 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. Contents of Rightmost Cell
    By atwy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2015, 09:31 PM
  2. Finding the rightmost value for a non-continuous range (cntd.)
    By dotrooster in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-04-2014, 03:45 PM
  3. Finding the rightmost value for a non-continuous range
    By dotrooster in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-28-2014, 06:40 PM
  4. look for the rightmost cell with data
    By JakeAy in forum Excel General
    Replies: 2
    Last Post: 04-01-2010, 05:31 AM
  5. I want to vlookup from the rightmost column of the range
    By CENorth7272 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2005, 08:54 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