indirect cell

rsant39

Board Regular
Joined
Jun 26, 2006
Messages
69
I have a sheet(sheet 1) with 4 columns of data. We'll say the columns are titled
ACCOUNT, AMOUNT, DATE, ID. I have another sheet(sheet 2) with a bunch of account numbers. I want to see if the accounts in sheet2 are listed in sheet 1 and if they are i need the data that corresponds to the amount data for that account. Any idea on how I can do that?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Sounds like a job for SUMIF

Have you tried using the sumif command?

Are you trying to total the amounts for each account?

Countif will count the number of rows with that account#
 
Upvote 0
i am not trying to total the amounts for each account. i just need the data that is in the ID column that corresponds to the account number
 
Upvote 0
If the accounts are unique in the ACCOUNT, AMOUNT, DATE, ID list then use vlookup.
 
Upvote 0
Sumif will work if you are looking to total the numbers in the ID column
this is the the Vlookup formula if the sheet1 info you specified begins in cell A1, and you are returning the ID from column "D", & sheet2 accounts are also beginning in cell A1.

=VLOOKUP(Sheet2!A1,Sheet1!A2:D6,4,TRUE)

and this is the same thing with indirect

=INDIRECT("sheet1!d"&MATCH(Sheet2!A1,Sheet1!A1:A6,0))
 
Upvote 0

Forum statistics

Threads
1,213,563
Messages
6,114,329
Members
448,564
Latest member
ED38

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