Need assist on SUMIF/S

butcherrrr

New Member
Joined
Jul 8, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Good day. Can I get a little help in figuring this out? (Im such a noob with this and cannot get it to work).


This is a sample dataset where we get batches of some products with their costs and expiry. I would like to automate the raw data that I get and generate a report like this (sample below) of the cost of all BATCH C and a separate one for BATCH D that will be expiring in 'x' days.

I just need a little nudge on the syntax and how to generate it. I just dont know how to start. Thank you.
 

Attachments

  • sampleexc.jpg
    sampleexc.jpg
    126.4 KB · Views: 10

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Welcome to the MrExcel board!

Are those decimal values under "EXPIRY" days? If not, where do we get the days figure from?
 
Upvote 0
Welcome to the MrExcel board!

Are those decimal values under "EXPIRY" days? If not, where do we get the days figure from?
Sorry I forgot to edit the days part. The days would be round numbers, no decimal points after them.

The days figure would be auto generated from the list we get from our system.

I made another sample dataset below:
APPROX COSTBATCHTYPEEXPIRYBATCH TYPE
307,000.00A1
2465​
2,223,189.86C1
232​
Get the approx cost of all
22,916.89C1
0​
vegetables expiring in (x)
10,432.75A11
0​
days of only Batches C & D
9,158.33A2
0​
44,791.67C11
0​
9,579.17A11
0​
BATCH 1 -VEGETABLES
171,425.77A12
45​
1-3601,348,738.07
624,000.00C1
0​
361-730
610,081.41A1
0​
731-1095
884,767.45A12
87​
1096-1460
87,512.29A16
0​
1460+1,008,789.67
30,000.00D17
0​
2,357,527.74
5,500.00A19
0​
359,591.58D19
0​
BATCH 2 - FRUITS
28,160.80A2
43​
1-3601,996,469.65
2,358.54A19
0​
361-730240,615.29
84,292.38D19
0​
731-10951,116,651.40
54,233.16A1
0​
1096-14601,316,077.95
10,267.72B19
0​
1460+3,432,455.26
54,115.73A2
5​
8,102,269.55
113,209.81B2
58​
8,730.86A19
0​
32,778.37B1
132​
59,171.24A19
2318​
25,547.51A1
22​
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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