Cell Referencing

Maverick1501

New Member
Joined
Mar 8, 2010
Messages
8
I need to create a formula whereby if cell 'A1' = 123456, then cell 'B1' automatically changes to a description. i.e. a prodcut description. This I have done using =IF(A23=Sheet1!B2,Sheet1!A2,). However, this only seem to work when referencing one cell. I need to be able to reference many cells so typing in different codes will bring up different descriptions. Any ideas?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi Maverick1501 and welcome to the board!

I believe you are after a VLOOKUP:
Excel Workbook
ABCDE
1123456Product 1Table
2123456Product 1
3123457Product 2
4123458Product 3
sheet
Excel 2003
Cell Formulas
RangeFormula
B1=VLOOKUP(A1,D2:E4,2,)


In this example, the lookup value is A1, being sought in the table in columns D & F. It looks for a match in the left most column of the lookup table (therefore column D) and returns a value from the 2nd column of the table (therefore column E).

I do suggest you read up on the capabilities and sytax of VLOOKUP in your help file.
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,946
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top