+ Reply to Thread
Results 1 to 7 of 7

Show data from cell if it includes a certain number

  1. #1
    Registered User
    Join Date
    12-19-2013
    Location
    United Kingdom
    MS-Off Ver
    2010
    Posts
    13

    Show data from cell if it includes a certain number

    Hey guys,

    Really convoluted question so I've tried to give a simplified example below.

    What I'd like to see in Column D is - If the value in C1 appears in A:A please show me the value in Cell B.


    A B C D
    123 9 745
    1234 7 654
    12 9 123
    3456 8 654
    432 6 678
    122 7 154
    678 5 789
    Attached Files Attached Files

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Show data from cell if it includes a certain number

    Like this?

    =IF(ISNUMBER(MATCH(C1,A:A,0)),B1,"")
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    12-19-2013
    Location
    United Kingdom
    MS-Off Ver
    2010
    Posts
    13

    Re: Show data from cell if it includes a certain number

    That's perfect! Thanks so much!

  4. #4
    Registered User
    Join Date
    12-19-2013
    Location
    United Kingdom
    MS-Off Ver
    2010
    Posts
    13

    Re: Show data from cell if it includes a certain number

    Sorry I spoke to soon.

    So it seems to return whatever is in B1 or equivalent.

    What I need it to return is the value in the cell next to the one it matched with.

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Show data from cell if it includes a certain number

    maybe..in B1 of Sheet2

    =IFERROR(INDEX(Sheet1!B:B,MATCH(A1,Sheet1!A:A,0)),"")

    based on data in your attachment

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  6. #6
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Show data from cell if it includes a certain number

    So you want to take the C value, find a matching value in A-column, and return the same row as the match from B column? That's a simple lookup fuction. Put in D1:

    Please Login or Register  to view this content.
    Pull down.

    If that's not what you need, please articulate what you want the formula to do.

  7. #7
    Registered User
    Join Date
    12-19-2013
    Location
    United Kingdom
    MS-Off Ver
    2010
    Posts
    13

    Re: Show data from cell if it includes a certain number

    Thanks Ace - this fixed it!


    Thanks all for the suggestions!

    Quote Originally Posted by Ace_XL View Post
    maybe..in B1 of Sheet2

    =IFERROR(INDEX(Sheet1!B:B,MATCH(A1,Sheet1!A:A,0)),"")

    based on data in your attachment

    Copy down

+ 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: 9
    Last Post: 08-15-2013, 01:44 PM
  2. [SOLVED] Counting Cells that includes exact match and also if a cell includes specific text
    By smclachlan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-19-2012, 07:42 PM
  3. Replies: 1
    Last Post: 04-23-2008, 07:33 AM
  4. [SOLVED] Text that includes data from a designated cell?
    By Blades in forum Excel General
    Replies: 2
    Last Post: 06-27-2006, 08:10 AM
  5. [SOLVED] How do I format to currency when number includes cents?
    By INEEDHELP in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-13-2006, 11:36 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