# VLOOKUP Function for multiple tabs

#### nayseem

##### New Member
Good morning,

I have the logic but not sure how to code/go about creating a code.

I have an excel spreadsheet with 6+ tabs that I am using to keep track of approved time off for my staff.

I want a formula that will:
• Look for a person's name in column A and add the values that are associated in that corresponding row
• Look and add at all the tabs with the same logic as above

I have thought of everything to my knowledge and tried reading a few forums but no luck. (SUMPRODUCT, COUNTIF, INDIRECT, SUMIF, VLOOKUP)

Any suggestions?

### Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

#### DRSteele

##### Well-known Member
If you could take the time to provide for us some sample data together with desired result, we could visualise your issue.

Look in my signature below for a link to an HTML Add-in.

##### MrExcel MVP
1. Create a range housing the names of those 6 tabs you have.

2. Select the range in (1) and name it SheetList thru the Name Box on the Formula Bar.

3.

Let A2 house a person's name.

Now invoke in B2:

=SUMPRODUCT(SUMIFS(INDIRECT("'"&SheetList&"!B:B"),INDIRECT("'"&SheetList&"!A:A"),\$A2))

This sums numbers from column B which correspond to the occurrences of A2 in column A.

Replies
3
Views
249
Replies
1
Views
128
Replies
4
Views
242
Replies
0
Views
143
Replies
6
Views
529

1,191,483
Messages
5,986,848
Members
440,053
Latest member
jhollingworth

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

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