Need lookup formula with sum condition

Kulo5856

New Member
Joined
May 11, 2020
Messages
36
Office Version
  1. 365
  2. 2013
  3. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
Dear Experts,

I need formula for the below
Machine NameJCB-1JCB-2Scooter-1Scooter-2
DateDayFuel TypeIssuedFuel TypeIssuedFuel TypeIssuedFuel TypeIssued
01-07-2023​
SaturdayDiesel
5​
Diesel
20​
Petrol
5​
Petrol
10​
02-07-2023​
SundayDiesel
25​
Diesel
10​
Petrol
5​
Petrol
10​
03-07-2023​
MondayDiesel
30​
Diesel
2​
Eng oil
1​
Eng oil
1​
03-07-2023​
MondayHyd Oil
1​
hyd oil
1​
Petrol
2​
Petrol
15​

Fuel typePre BalReceivedTotal IssuedClosing Balance
Diesel
Petrol
Eng Oil
Hyd Oil

For this Total no of Issued Qty needed from the data for Fuel Types
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
How about
Fluff.xlsm
ABCDEFGHIJ
1Machine NameJCB-1JCB-2Scooter-1Scooter-2
2DateDayFuel TypeIssuedFuel TypeIssuedFuel TypeIssuedFuel TypeIssued
307/01/2023SaturdayDiesel5Diesel20Petrol5Petrol10
407/02/2023SundayDiesel25Diesel10Petrol5Petrol10
507/03/2023MondayDiesel30Diesel2Eng oil1Eng oil1
607/03/2023MondayHyd Oil1hyd oil1Petrol2Petrol15
7
8Fuel typePre BalReceivedTotal IssuedClosing Balance
9Diesel92
10Petrol47
11Eng Oil2
12Hyd Oil2
Sheet4
Cell Formulas
RangeFormula
D9:D12D9=SUMIFS($D$3:$J$6,$C$3:$I$6,A9)
 
Upvote 0
Thanks for that but if we have any additional columns that lookup formula is required
Machine NameJCB-1JCB-2Scooter-1Scooter-2
DateDayFuel TypePre BalIssuedClosing BalFuel TypePre BalIssuedClosing BalFuel TypePre BalIssuedClosing BalFuel TypePre BalIssuedClosing Bal
01-07-2023​
SaturdayDiesel
1​
5​
Diesel
5​
20​
Petrol
1​
5​
Petrol
5​
10​
02-07-2023​
SundayDiesel
2​
25​
Diesel
2​
10​
Petrol
2​
5​
Petrol
5​
10​
03-07-2023​
MondayDiesel
1​
30​
Diesel
1​
2​
Eng oil
1​
Eng oil
1​
03-07-2023​
MondayHyd Oil
1​
hyd oil
1​
Petrol
1​
2​
Petrol
3​
15​


for this data i want the formula

Fuel typePre BalReceivedTotal IssuedClosing Balance
Diesel
Petrol
Eng Oil
Hyd Oil
 
Upvote 0
How exactly is your data laid out?
 
Upvote 0
Sa.xlsx.xlsx
ABCDEFGHIJKLMNOP
1Machine NameJCB-1JCB-2Scooter-1Scooter-2Fuel typePre BalReceivedTotal IssuedClosing Balance
2DateDayFuel TypeIssuedFuel TypeIssuedFuel TypeIssued Fuel TypeIssued Diesel
301-07-2023SaturdayDiesel5Diesel20Petrol5Petrol10Petrol
402-07-2023SundayDiesel25Diesel10Petrol5Petrol10Eng Oil
503-07-2023MondayDiesel30Diesel2Eng oil1Eng oil1Hyd Oil
603-07-2023MondayHyd Oil1hyd oil1Petrol2Petrol15
7
Sheet1
Cell Formulas
RangeFormula
B3:B6B3=TEXT(A3,"dddd")
 
Upvote 0
With that data you can use the formula I suggested.
 
Last edited:
Upvote 0
Sir please find the data below

Sa.xlsx.xlsx
ABCDEFGHIJKLMNOPQRSTUVWX
1Machine NameJCB-1JCB-2Scooter-1Scooter-2Fuel typePre BalReceivedTotal IssuedClosing Balance
2DateDayFuel TypePre BalIssuedClosing BalFuel TypePre BalIssuedClosing BalFuel TypePre BalIssuedClosing BalFuel TypePre BalIssuedClosing BalDiesel
301-07-2023SaturdayDiesel5Diesel20Petrol5Petrol10Petrol
402-07-2023SundayDiesel25Diesel10Petrol5Petrol10Eng Oil
503-07-2023MondayDiesel30Diesel2Eng oil1Eng oil1Hyd Oil
603-07-2023MondayHyd Oil1hyd oil1Petrol2Petrol15
7
Sheet1
Cell Formulas
RangeFormula
B3:B6B3=TEXT(A3,"dddd")
 
Upvote 0
I asked you exactly how your data is laid out & you seem to be changing it. So once again EXACTLY how is your data laid out?
 
Upvote 0
In that case you can use
Excel Formula:
=SUMIFS($E$3:$Q$6,$C$3:$O$6,T2)
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
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