+ Reply to Thread
Results 1 to 4 of 4

If a range matches a cell, display text from another cell

  1. #1
    Registered User
    Join Date
    04-02-2015
    Location
    Southampton, England
    MS-Off Ver
    Excel 365
    Posts
    41

    If a range matches a cell, display text from another cell

    Hi Guys,

    Need some help with this formula.

    Basically I have a list of Company names in Column A, and a list of their VAT numbers in column B

    So I want to run a formula in a separate sheet that will search if a company name appears in that list and if it does display their VAT number.

    so for example I'm putting the formula in E6 and the company name i want to search is in D6

    =IF D6 matches company name in range A1:A50 then display the vat number next to their name in B1:50

    Thanks in advance
    Last edited by DarrenCl; 07-20-2017 at 10:34 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,446

    Re: If a range matches a cell, display text from another cell

    Try this:

    =IFERROR(VLOOKUP(D6,A$1:B$50,2,0),"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-02-2015
    Location
    Southampton, England
    MS-Off Ver
    Excel 365
    Posts
    41

    Re: If a range matches a cell, display text from another cell

    Excellent, so much thanks for this

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,446

    Re: If a range matches a cell, display text from another cell

    You're welcome!

+ 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] If Cell Matches Item from Cell Range then Display Item from Different Cell Range
    By kikialiena in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-17-2016, 02:01 PM
  2. Replies: 2
    Last Post: 01-13-2015, 12:12 PM
  3. Replies: 3
    Last Post: 10-04-2013, 05:20 PM
  4. Replies: 2
    Last Post: 08-05-2013, 07:32 PM
  5. [SOLVED] Formula to display cell if the text content partially matches a search term
    By Avestron in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2013, 04:07 AM
  6. If Cell Text Matches Any Text From Range, Then Apply VLOOKUP?
    By eliot1171 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2013, 09:41 PM
  7. Formula to Find If Text In a Cell Matches Another Range of Cells
    By purplesamcat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2013, 07:45 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