+ Reply to Thread
Results 1 to 3 of 3

finding specific data in a row

  1. #1
    Registered User
    Join Date
    01-11-2010
    Location
    Sheffield
    MS-Off Ver
    Excel 2003
    Posts
    7

    finding specific data in a row

    I have a row of data where i need to find a piece of information relating to two other bits of info.
    I.E. i need to find the number which follows the following sequence:

    01/04/2009 PENS - where the space is another cell

    The problem is that in the row there could be:

    01/04/2009 BASI

    or:

    08/09/2010 PENS

    So i do i find the number which follows: 01/04/2009 PENS

  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 specific data in a row

    Hi,

    Your request is not clear enough, at least to me. Can you upload an example workbook with a before and after situation shown. Make sure there is a representative sample containing all variations of your data.

    Rgds
    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
    04-13-2010
    Location
    Panama, Panama
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: finding specific data in a row

    An idea: Create a column with an if statement. Because you're using dates, the formatting will get annoying, so put the two variables you want to look for in two cells at the top (let's say you have "01/04/2009" in A1 and "PENS" in B1.

    Now, your formula. I'm assuming all your dates are in column A, your four-letter words (PENS and BASI) are in column C, and the numbers you want are in column D.

    Put your formula in column E (or wherever you want it):
    =if(and(A3=$A$1, C3=$B$1), D, "FALSE"). Then copy the formula in column E down as far as you have values in columns A and C.

    This will return the values in column D where "01/04/2009" appears in column A AND "PENS" appears in column C. Now you can put in a data filter (Alt, d, f, f) and temporarily filter out all of the "FALSE" replies, to get the numbers you want.

    Is that what you wanted?
    Last edited by smalls; 05-26-2010 at 04:45 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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