+ Reply to Thread
Results 1 to 7 of 7

If Cell Matches Item from Cell Range then Display Item from Different Cell Range

  1. #1
    Registered User
    Join Date
    03-17-2016
    Location
    Cary, NC
    MS-Off Ver
    Excel 2010
    Posts
    2

    If Cell Matches Item from Cell Range then Display Item from Different Cell Range

    If Cell Matches Item from Cell Range then Display Item from Different Cell Range

    Example: Cell B1 Contains "ABC123" If "ABC123" Matches "ABC123" From a Cell Range/Defined Name "Office Number" Then Output Matching Data From DIFFERENT Cell Range/Define Name "Location City and State.


    D1:D5500 Named: "Office Number"
    E1:E5500 Names: "Location City and State

    Anyone Have an Idea?
    Clever shortcuts, that's all I'm about! -HPMOR.COM

  2. #2
    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
    52,929

    Re: If Cell Matches Item from Cell Range then Display Item from Different Cell Range

    Hi, welcome to the forum

    I *think* you need to look at the INDEX/MATCH combo for this, but not really sure I undertand what you want.

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: If Cell Matches Item from Cell Range then Display Item from Different Cell Range

    Use the vlookup function. http://www.techonthenet.com/excel/formulas/vlookup.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If Cell Matches Item from Cell Range then Display Item from Different Cell Range

    Quote Originally Posted by kikialiena View Post
    D1:D5500 Named: "Office Number"
    E1:E5500 Names: "Location City and State
    Those are invalid named ranges. Or, are they ranges within a defined named table?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    03-17-2016
    Location
    Cary, NC
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: If Cell Matches Item from Cell Range then Display Item from Different Cell Range

    See Attached Dummy Doc (Kikialiena).

    Those are Ranges within a Defined Name Table.

    Title:

    Should then Output: John Smith New York NY
    Attached Files Attached Files
    Last edited by kikialiena; 03-17-2016 at 02:00 PM. Reason: Additional Info

  6. #6
    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
    52,929

    Re: If Cell Matches Item from Cell Range then Display Item from Different Cell Range

    INDEX/MATCH will work, but Alan's vlookup is simpler...
    =VLOOKUP($B$2,$C$1:$D$5,2,0)

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If Cell Matches Item from Cell Range then Display Item from Different Cell Range

    There is no defined table in your file.

+ 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] Macro VBA to Copy & Paste Cell Item to another Cell Item
    By mave27 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-25-2015, 02:55 AM
  2. [SOLVED] Macro VBA to Copy & Paste Cell Item to another Cell Item
    By mave27 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-24-2015, 05:10 AM
  3. Replies: 2
    Last Post: 01-13-2015, 12:12 PM
  4. Replies: 2
    Last Post: 03-19-2014, 03:43 PM
  5. Replies: 3
    Last Post: 10-04-2013, 05:20 PM
  6. [SOLVED] Formula if an item from a list is selected in cell 1, then don't display in cell 2
    By Silenz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-26-2013, 09:51 PM
  7. Replies: 3
    Last Post: 04-04-2012, 03:23 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