# indirect cell

#### rsant39

##### Board Regular
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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

#### azcat90

##### New Member
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#

#### rsant39

##### Board Regular
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

#### azcat90

##### New Member
If the accounts are unique in the ACCOUNT, AMOUNT, DATE, ID list then use vlookup.

#### rsant39

##### Board Regular
SUMIF just might work. thanks

#### big_mac

##### Board Regular
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))

Replies
1
Views
509
Replies
1
Views
671
Replies
2
Views
193
Replies
0
Views
891
Replies
5
Views
540

1,171,966
Messages
5,878,528
Members
433,348
Latest member
eramirez148

### 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.

### Which adblocker are you using?

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

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