Sumif / vlookup question

AKSMITH

New Member
Joined
Apr 18, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi there, I am building a finance worksheet for managing purchase order creation & invoicing.

Sheet 1: full budget overview with a budget against each activity.
Sheet 2: PO tracker where details such as PO number, amount etc. are input
Sheet 3: Invoice tracker where the PO can be selected, invoice amount tracked, etc. You can have multiple invoices for one PO. This sheet also includes the ability to view the remaining amount on PO (pulling info from sheet 2. I have used the following formula for this:
=IFERROR(VLOOKUP(A4,'PO Tracker'!$A$4:$M$498,2,0)-SUMIFS($H$3:H4,$A$3:A4,A4),"")

I would like to add a column that allows me to show remaining amount on the activity (pulling info from sheet 1, calculated by Activity budget - PO amounts).

I have the following formula, based on the following columns: A = PO Number (there are duplicate PO numbers on this sheet), B = PO Amount, E=Activity Name, 'Budget Overview' row B = total budget for that activity. My problem is that my sumif equation is calculating the same amount from row B (PO Amount) multiple times where there are multiple entries with same PO. How can I add another If element into the formular that looks at column A when calculating column B and removes any duplicate calculations based on the same PO seen in column A?

=IFERROR(VLOOKUP(E4,'Budget Overview'!$A$1:$C$45,2,0)-SUMIFS(B$3:B4,E$3:E4,E4),"")
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
would you be able to post an example of the errors on your sheet ? Makes it much easier for people to understand for you.

thanks
Rob
 
Upvote 0

Forum statistics

Threads
1,224,741
Messages
6,180,681
Members
452,993
Latest member
FDARYABEE

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