+ Reply to Thread
Results 1 to 5 of 5

Finding numbers in a row

Hybrid View

  1. #1
    Registered User
    Join Date
    11-01-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    52

    Finding numbers in a row

    Hi All,

    I've got a rather large spreadsheet of data that contains both text and numerical values, and basically, what I would like to do is find a formula that will allow me to extract the numerical values from the row.

    For instance; if cells D - J in row 1 contain the Phrase: Please (D1) Choose (E1) 2 (F1) OR (G1) 4 (H1) OR (I1) 8 (J1), How could I construct a formula that would return 2 in cell A1, 4 in cell B1 and 8 in cell C1? The formula would need to be dynamic though, as there is no set serie of numbers that it would be drawing from (ie, in rows 2,3 etc.. the numbers in those cells could be completely different, or the actual phrase could have changed in which case the numerical value would be in a different column in the range).

    Many Thanks!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Finding numbers in a row

    Hi,

    So that we can understand your requirement without confusion would you upload an example with a few rows of the typical results that you expect explaining where necessary why you get the results you show?

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-01-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Finding numbers in a row

    Hi Richard,

    Thank you for the quick response. Attached is a simplified version of what I am looking for. Does that make sense?

    Thanks
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Finding numbers in a row

    Based on your sample, maybe...
    =IFERROR(SMALL($E2:$K2,COLUMN(A1)),"")
    copied down and across
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Finding numbers in a row

    If the numbers are not ascending left to right in Columns E:K, and you need them in the order they occur then try this.
    In A2
    Confirm with Ctrl+Shift+Enter not just Enter Before dragging Across and Down.
    Formula: copy to clipboard
    =IFERROR(INDEX(2:2,1,SMALL(INDEX(IF(ISNUMBER($E2:$K2),COLUMN($E2:$K2),""),1,),COLUMNS($A:A))),"")

    Note
    Your profile is 2003 but the workbook you supplied is 2007 or above.
    If you need this to work with 2003 then use this CSE array formula
    Formula: copy to clipboard
    =IF(ISERROR(INDEX(2:2,1,SMALL(INDEX(IF(ISNUMBER($E2:$K2),COLUMN($E2:$K2),""),1,),COLUMNS($A:A)))),"",INDEX(2:2,1,SMALL(INDEX(IF(ISNUMBER($E2:$K2),COLUMN($E2:$K2),""),1,),COLUMNS($A:A))))
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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. Finding the sum of numbers in VBA
    By csr_cafc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-21-2010, 09:48 AM
  2. Finding Value between two Numbers
    By Sarina2424 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-09-2010, 09:05 AM
  3. Finding numbers
    By tikina in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-10-2008, 09:41 AM
  4. Finding Numbers
    By NextByte in forum Excel General
    Replies: 14
    Last Post: 09-28-2008, 01:20 AM
  5. finding numbers
    By flat6 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-18-2005, 10:06 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