Using either vlookup or IF function

Balmer07

New Member
Joined
Feb 14, 2018
Messages
41
Hi,

I have a query.

I have a 2 tables of data, similar to below and basically I need to analyse how many pallets move in and out in a month, the raw data is inputted on the the bottom table but I want to know if there is a way to do a vlookup or IF function to basically add in the total number of pallets on a specific day that have been brought in or sent out against a specific part code.

Part Code
Dateinbound
01/06/2019**FORMULA NEEDED**
02/06/2019**FORMULA NEEDED**

<tbody>
</tbody>


DateInbound/OutboundPart CodePallet quantity
01/06/2019InboundABC1232
02/06/2019InboundABC1244

<tbody>
</tbody>


If you have any questions to help work it out let me know

thanks,
Steven
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,879
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Maybe something like this


A
B
C
D
E
F
G
H
1
Part Code​
ABC123​
Date​
Inbound/Outbound​
Part Code​
Pallet quantity​
2
Date​
inbound​
01/06/2019​
Inbound​
ABC123​
2​
3
01/06/2019​
2​
02/06/2019​
Inbound​
ABC124​
4​
4
02/06/2019​
0​
5

Formula in B3 copied down
=SUMIFS(G$2:G$100,$D$2:$D$100,A3,E$2:E$100,B$2,F$2:F$100,B$1)

M.
 

kurtisw

New Member
Joined
Jun 16, 2019
Messages
7
Using Marcelo example and your data is formatted as a table the following should work as well.

=SUMIFS(Table1[Pallet Quantity],Table1[Date],A3,Table1[Inbound/Outbound],B2,Table1[Part Code],B1)
 

Forum statistics

Threads
1,144,159
Messages
5,722,833
Members
422,460
Latest member
VBA_Noob01

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
Top