+ Reply to Thread
Results 1 to 7 of 7

Select a number of a certain type from one of 4 cells?

  1. #1
    Registered User
    Join Date
    08-30-2007
    Location
    Dublin, Ireland
    Posts
    18

    Select a number of a certain type from one of 4 cells?

    hi, i have a report coming from an accounting system into excel, depending on the type of transaction (sales invoice, sales credit memo, purchase invoice, purchase cr memo, journal etc) the reference number will be in on of 4 colums, call them n2 - q2.

    What i would like to do is have a formula that will return the first instance of a 7 digit number beginning 10 that it comes across.

    how best to achieve this?

    thanks in advance

  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: Select a number of a certain type from one of 4 cells?

    You'd be better of uploading an example which shows the result you expect.
    The statement 'first instance' is open to interpretation.

    First instance in what?
    By row down a column then across columns or by column across the columns and then down the rows?

    Oh, incidentally. Would you edit your details to show your location please. It is often useful information when formulating a response to stuff like date arithmetic or deciding whether regional settings may be relevant.
    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
    08-30-2007
    Location
    Dublin, Ireland
    Posts
    18

    Re: Select a number of a certain type from one of 4 cells?

    hi

    location updated, its Dublin Ireland.

    What i want is a formula in the cell in yellow to look across the cells in blue and select the 8 digit number beginning 10 (the first time it comes across it ideally)

    is that a little clearer?

    thanks
    Attached Files Attached Files

  4. #4
    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: Select a number of a certain type from one of 4 cells?

    Hi,

    One way

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-30-2007
    Location
    Dublin, Ireland
    Posts
    18

    Re: Select a number of a certain type from one of 4 cells?

    thanks, but that will just return the first number it comes across correct, in the data there may be 4 different types of numbers across the columns, i want to be able to specify an 8 digit number beginning with 10, is that possible?

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Select a number of a certain type from one of 4 cells?

    Please try at J2

    =INDEX(K2:O2,MATCH(1,INDEX((LEFT(K2:O2,2)="10")*(LEN(K2:O2)=8),),))

  7. #7
    Registered User
    Join Date
    08-30-2007
    Location
    Dublin, Ireland
    Posts
    18

    Re: Select a number of a certain type from one of 4 cells?

    thanks ill try that

+ 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. [SOLVED] Index-Match type lookup to assign phrase to a number from a MaxDiff type survey matrix
    By FivestarMac in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2018, 02:24 PM
  2. Select cells by type of formula
    By MikeWard100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2014, 08:29 PM
  3. [SOLVED] select a particular number of cells within the row
    By katya_p in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2012, 08:29 AM
  4. [SOLVED] how to select a range and then add a specific number of cells after it
    By dwassner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-03-2012, 08:41 AM
  5. Count number of cells with blue type
    By shy07014 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-10-2009, 08:11 PM
  6. [SOLVED] Select a certain number of cells in a row
    By Dolphinv4 in forum Excel General
    Replies: 1
    Last Post: 10-21-2005, 11:05 AM
  7. [SOLVED] Adding new 'Type' to Format->Number->Time->Type
    By Alex Vinokur in forum Excel General
    Replies: 5
    Last Post: 09-26-2005, 04: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