+ Reply to Thread
Results 1 to 3 of 3

formula that will return cell next to certain value

  1. #1
    Registered User
    Join Date
    02-07-2005
    Location
    Minneapolis
    Posts
    36

    formula that will return cell next to certain value

    Hello! Can anyone help me with a formula for the following scenario please...

    Col A lists product codes
    Col B lists prices

    I need to search cells A1:A2000 and when it recognizes a certain code, return the price in the cell next to it (which would B"something")

    Thank you!!

    Jenny

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi JennyC,

    You could do this a few ways, the easiest probably being a VLOOKUP. For example:
    =VLOOKUP(your_code,$A$1:$B$2000,2,0)

    This will search for your_code in column A (A1:A2000) and if found it will return the value in the cell next to it (column B).

    Another way would be to use
    =INDEX($B$1:$B$2000,MATCH(your_code,$A$1:$A$2000,0))

  3. #3
    Registered User
    Join Date
    02-07-2005
    Location
    Minneapolis
    Posts
    36

    Thank you!!

    PERFECT!!! Thank you so much!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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