+ Reply to Thread
Results 1 to 4 of 4

Index first cell with numeric value non-string in row.

  1. #1
    Registered User
    Join Date
    05-19-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    11

    Index first cell with numeric value non-string in row.

    Hi everyone. I want to write a nested if statement with an OR in it. my goal is to index the first cell that has a numerical value. For example

    A B C D E F G
    Jul-13 Aug-13 Sep-13 Oct-13 Nov-13 Dec-13 Jan-14
    $1,152.00 $1,152.00 $1,344.00 $576.00 $384.00 $576.00
    $384.00 $384.00 $384.00 No Bill No Bill No Bill
    No Bill No Bill No Bill $765.00 $765.00 No Bill

    Say the row with the months is row 1.
    II would want G2 to display $576, G3 to display $384.00 and G4 to display $765.00. I'm struggling with the syntax of the nested If and OR function.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Index first cell with numeric value non-string in row.

    Using your posted example...
    this regular formula, copied down, returns the last numeric value in the referenced range
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    05-19-2011
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Index first cell with numeric value non-string in row.

    That worked perfectly. I consider my self at an intermediate level when writing function statements. Is it possible to explain the 10^10. Thank you so much. You are a gentlemen and a scholar.

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Index first cell with numeric value non-string in row.

    Regarding this formula:
    =LOOKUP(10^10,A2:F2)

    1) the LOOKUP function has a neat feature. If the lookup value is larger than every value of the same type (numeric or text) in the lookup range...it matches on the last value of that type.
    2) If you want to use the largest number that Excel can handle, use: 9.99999999999999E+307
    However, that's more typing than I prefer. Consequently, I use 10^10...which works for every application, except maybe astronomy

+ 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. Replies: 4
    Last Post: 06-21-2012, 11:34 AM
  2. [SOLVED] Split Data in CELL numeric and String
    By allstarleb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-27-2012, 01:01 PM
  3. Extracting Numeric Values from an Alpha/Numeric String
    By Delkath in forum Excel General
    Replies: 5
    Last Post: 10-27-2010, 02:36 PM
  4. Numeric value from a text string/numeric identifier?
    By lampshell in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2008, 02:21 PM
  5. Numeric cell but shows as string?
    By Brett in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-24-2005, 08:06 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