VLOOKUP Function for multiple tabs

nayseem

New Member
Joined
Mar 22, 2016
Messages
14
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?

Thanks in advance for your help!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,019
Members
449,060
Latest member
LinusJE

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