Calculation from specific tables.

Shimont109

New Member
Joined
Sep 19, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hey!
I'm having a little struggle with a formula and I was hoping you could help me out :)
This is what i'm trying to do:
I have three active tables.
Table 1 is the main one and it is concentrated by a job number, Table 2 is for active jobs and the amount of money spent on them, after the job is completed it moves to table 4 which contains all the finished jobs.
My goal is to show on table 1 the sum amount paid per job whether it's completed or not.

I'm using this formula:
=IF(VLOOKUP([@[Job '#]],Table2,1,FALSE),SUMIF(Table2,[@[Job '#]],Table2[PO Sum]),SUMIF(Table4,[@[Job '#]],Table4[PO Sum]))

But something is wrong with it, it calculates correctly if the job is still active, however, it won't calculate the inactive jobs.

Help.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,214,905
Messages
6,122,178
Members
449,071
Latest member
cdnMech

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