+ Reply to Thread
Results 1 to 7 of 7

Pull out right most data but ignore blanks

  1. #1
    Registered User
    Join Date
    12-25-2018
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    5

    Pull out right most data but ignore blanks

    Hi guys

    I have a straight row of repeating data. I want to pull out the data from the right most coloum titled lets say "How many apples" Currently i am using the formula below and it works but it does not ignore blanks. If the rightmost coloum of how many apples is a blank, excel pull out a zero for me now. I want excel to ignore the blank and search one step back to pull down data from the previous coloum of same title which is not blank. Appreciate your kind help.

    How many apples
    How many apples
    2
    blank

    So the answer for the above should be 2 and not zero

    Formula i am using that does not ignore blanks now.

    =LOOKUP(2,1/($1:$1=$F$1),2:2)
    Last edited by ravens101213; 12-25-2018 at 04:52 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Pull out right most data but ignore blanks

    What is your data? Text or Number?
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    12-25-2018
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    5
    Quote Originally Posted by mehmetcik View Post
    What is your data? Text or Number?
    Numbers. Like the 2 and blank example above. I need it to pull out 2 instead of show 0 for blank

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Pull out right most data but ignore blanks

    Assuming we are looking at row 2.

    =INDEX(2:2,1,MATCH(9^99,2:2))

  5. #5
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    484

    Re: Pull out right most data but ignore blanks

    Try

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

  6. #6
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Pull out right most data but ignore blanks

    Hi,

    Unless I'm missing something, but OP's formula, as well as the suggestion in Post # 5, would Error out due to "circular reference".

  7. #7
    Registered User
    Join Date
    12-25-2018
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    5
    Hi guys thanks you for the help. Very much appreciated. The solution given in the 3rd last post worked.

+ 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. Ignore Blanks In Data Sort
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2009, 12:30 AM
  2. Data Validation, Ignore Blanks
    By U6C84 in forum Excel General
    Replies: 11
    Last Post: 09-25-2007, 01:38 PM
  3. Data Validation - ignore blanks
    By Neville in forum Excel General
    Replies: 10
    Last Post: 11-09-2005, 10:10 AM
  4. Ignore Blanks in Data Validation
    By Debra Dalgleish in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 09-06-2005, 07:05 AM
  5. [SOLVED] Ignore Blanks in Data Validation
    By Debra Dalgleish in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] Ignore Blanks in Data Validation
    By Debra Dalgleish in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 09-06-2005, 04:05 AM
  7. [SOLVED] Ignore Blanks in Data Validation
    By Ricky in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  8. Ignore Blanks in Data Validation
    By Ricky in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10: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