+ Reply to Thread
Results 1 to 5 of 5

Formula question: find cell from M29 upwards until a numeric value is found

  1. #1
    Registered User
    Join Date
    04-02-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    40

    Formula question: find cell from M29 upwards until a numeric value is found

    Assume I have a formula in cell F30 similar to

    =$A12 + B$5 + *******

    Now I want to find for ******* a way to express the following:

    1.) Go to column M in the same row as formula and then one row upwards (here: M29 )
    2.) Take that cell value if it contains a (numeric) value.
    3.) If it does NOT contain a (numeric) value then go one row upwards (=e.g. M28,M27,M26,......)
    4.) If M1 reached take 0 otherwise try again step 2.) above

    How can I express that rule in a Excel 2007 formula?

    Peter

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Formula question: find cell from M29 upwards until a numeric value is found

    =INDEX($M$1:$M$29,match(large($O$1:$O$29,1),$O$1:$O$29,0),1)

    see the attached file.
    Attached Files Attached Files
    Last edited by oeldere; 08-24-2014 at 05:49 AM.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: Formula question: find cell from M29 upwards until a numeric value is found

    Hi Peter

    Try in F30:

    =$A12+B$5+IFERROR(LOOKUP(2,1/ISNUMBER($M$1:M28),$M$1:M28),0)

  4. #4
    Registered User
    Join Date
    04-02-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Formula question: find cell from M29 upwards until a numeric value is found

    Quote Originally Posted by lecxe View Post
    Try in F30:

    =$A12+B$5+IFERROR(LOOKUP(2,1/ISNUMBER($M$1:M28),$M$1:M28),0)
    Hi lecxe,
    thank you for the suggestion but when I try to apply it I got from Excel 2007:

    "The formula you typed contains an error"

    with highlighted last (!) "$M$1" reference.

    Why did you use a range LOOKUP(.....,$M$1:M28)?
    Shouldn't only one cell be returned?

  5. #5
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: Formula question: find cell from M29 upwards until a numeric value is found

    Hi

    I just tried it and got no problem.

    Can you please try retyping the formula in the cell?
    Or do you have non-English settings and you must separate the function parameters with a semicolon ";" instead of with a comma ","?

    Quote Originally Posted by pstein View Post
    Why did you use a range LOOKUP(.....,$M$1:M28)? Shouldn't only one cell be returned?
    Yes, only one value is returned, the one corresponding to the last match.

+ 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. Find Cell Address of a value found using a VLOOKUP Formula
    By ARGK in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-16-2013, 08:54 AM
  2. Replies: 2
    Last Post: 09-11-2013, 07:26 PM
  3. [SOLVED] UDF to Vlookup multiple delimited values (numeric/non-numeric) and sum found values
    By Geert Rottiers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2013, 09:30 AM
  4. [SOLVED] Look up non numeric value (upwards)
    By gombi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-31-2012, 08:04 PM
  5. How to find the first value upwards in a column.
    By kostas in forum Excel General
    Replies: 2
    Last Post: 08-09-2007, 08:25 AM

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