Vlookup - vlookup

JOHANNA

New Member
Joined
May 12, 2005
Messages
39
I have a workbook with several worksheets. I have one worksheet with a table of "pension payment" which is a flat dollar amount for half of my employees. Several other tabs are by pay date with salary and pension payment information. I have one tab that is a summary sheet.

I would like a formula on my summary sheet that would look up the value on the pension payment tab and subtract any payment received on the specific pay date tab.

Currently I tried the following formula for example:

=IF(ISERROR(VLOOKUP($A3,'Pension Payment'!$A$2:$E$189,5,0)-VLOOKUP($A3,'W-E 10-03-2010'!$B$3:$J$252,9,0)),0,(VLOOKUP($A3,'Pension Payment'!$A$2:$E$189,5,0)-VLOOKUP($A3,'W-E 10-03-2010'!$B$3:$J$252,9,0)))

The problem is that not everyone who gets a pension payment shows up on every pay date tab. When the employee shows up on the Pension Payment tab, but not on the pay date then I get a 0 result. Is there a way to specify that if they are on the Pension Payment tab, but not on the pay date tab that I want to subtract 0 from the Pension Payment information?
 

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"
Wouldn't be more appropriate to invoke a SumIf formula here?

Something like:

Rich (BB code):
=SUMIF('Pension Payment'!$A$2:$A$189,$A3,'Pension Payment'!$E$2:$E$189)-
    SUMIF('W-E 10-03-2010'!$B$3:$B$252,$A3,'W-E 10-03-2010'!$J$3:$J$252)
 
Upvote 0
Try

=LOOKUP(9.99999999999999E+307,CHOOSE({1,2,3},0,VLOOKUP($A3,'Pension Payment'!$A$2:$E$189,5,0),VLOOKUP($A3,'Pension Payment'!$A$2:$E$189,5,0)-VLOOKUP($A3,'W-E 10-03-2010'!$B$3:$J$252,9,0)))
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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