+ Reply to Thread
Results 1 to 8 of 8

Search for a certain value in column "A" and return its equivalent value from Column "B"

  1. #1
    Registered User
    Join Date
    04-19-2015
    Location
    Bournemouth
    MS-Off Ver
    M365 for enterprise
    Posts
    2

    Search for a certain value in column "A" and return its equivalent value from Column "B"

    Hi everyone, here is my challenge. I have a spreadsheet with various tabs. One tab contains a list of equipment, each row is a different piece of kit (different record). Column A contains each item's unique code and Column B contains its description. On a different tab of the same spreadsheet I need to be able to enter an item code in one cell (lets say A1) and somehow perform a search in the list of kit (on the other tab) and return its description on the cell next to it (let's say B1). I know I can not run a macro as part of a function in Excel. Any suggestions please as to how I could achieve this? Many thanks

  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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Search for a certain value in column "A" and return its equivalent value from Column "

    Administrative Note:

    Welcome to the forum.

    Is your forum profile showing the oldest Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    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
    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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Search for a certain value in column "A" and return its equivalent value from Column "

    Consider VLOOKUP:

    https://support.microsoft.com/en-gb/...8-93a18ad188a1

    Or, if you have Excel 2021 or 365, XLOOKUP:

    https://support.microsoft.com/en-gb/...9-88eae8bf5929

    YOu posted in the VBA section, but said that you could not run a macro - did you mean to post in the Formulas & Functions section? If so, I can move the thread for you.
    Attached Files Attached Files
    Last edited by AliGW; 07-14-2024 at 04:46 AM. Reason: Workbook added.

  4. #4
    Registered User
    Join Date
    04-19-2015
    Location
    Bournemouth
    MS-Off Ver
    M365 for enterprise
    Posts
    2

    Re: Search for a certain value in column "A" and return its equivalent value from Column "

    Ali hi, profile updated, thank you

  5. #5
    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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Search for a certain value in column "A" and return its equivalent value from Column "

    OK - thanks. See post #3 and lest me know how you get on. No need for macros for something as simple as this.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
    Last edited by AliGW; 07-14-2024 at 05:02 AM. Reason: Additional information added.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,587

    Re: Search for a certain value in column "A" and return its equivalent value from Column "

    Try, for example,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Search for a certain value in column "A" and return its equivalent value from Column "

    Gone without acknowledging any of the solutiuons offered.

    Please see post #5 and sign off the thread accordingly. Thanks.

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,366

    Smile Re: Search for a certain value in column "A" and return its equivalent value from Column "

    Instead of VLookUp still prefer Index-Match because of the flexibility.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  2. compare cells from column "A" and return newest date from column "B"
    By toni1703 in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 01-12-2016, 08:33 AM
  3. Update Macro to search column Bfor "Fail" and "Exception"
    By programct in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2014, 02:32 PM
  4. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  5. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  6. Replies: 3
    Last Post: 04-14-2013, 11:53 PM
  7. Replies: 2
    Last Post: 05-05-2008, 04:51 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