Help With Formula Sumifs based on Two criteria Range

Lukma

Active Member
Joined
Feb 12, 2020
Messages
259
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi good friend

I have slight issue getting around with the formula i have in column D7 to W7 with different MUS-1, or MUS-2 and so on and i have in column B10:B100 with List name Now i need formula to Sum value in Column X10 base on criteria range in column D7:W7 and based on Column B10:B100 i need formula result in Column D25 for each Criteria

Appreciate your help and support always

Regards



24_hours Vessel Utilization Report.xlsm
BCDEFGHIJKLMNOPQRSTUVWXY
7VOYAGE (MUS NO) Mus-1Mus-3Mus-4Mus-6
8Total Time in Days 24Hrs22.9000.0000.000230.954167
9Units (Rigs / Barges)123Total HourIn Days
10Working MOSBWorking MOSB Base Jetty Cargo Operation1.01.00.0416667
11Waiting MOSB permissionWaiting for ADNOC Permission FWB2.32.30.0958333
12Waiting MOSBWaiting ADNOC Berthing Instruction5.25.20.2166667
13Waiting MOSBWaiting Base Cargo Operation0.00
14Waiting MOSBWaitng Drilling Material0.00
15Waiting MOSBCargo Operation Suspended0.00
16Waitng VTSWaiting VTS permission13.413.40.5583333
17Waitng VTSWaiting on Channel Closure11.00.0416667
18Waiting PilotWaiting for Pilot0.00
19WOWWaiting WOW , FOG / POOR VISIBILITY0.00
20Shifting MOSB BerthShifting Berth ADNOC Port0.00
21SteamingInTransit / Steaming to Location0.00
22
23
24Working MOSBWaiting MOSB permissionWaiting MOSBWaiting MOSBWaiting MOSBWaiting MOSBWaitng VTSWaitng VTSWaiting PilotWOWShifting MOSB BerthSteaming
25Mus-1
26Mus-3
27Mus-4
28Mus-6
Sheet3
Cell Formulas
RangeFormula
D8,I8,N8D8=SUM(D10:H262)
X8,X10:X21X8=SUM(D8:W8)
Y8,Y10:Y21Y8=X8/24
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Not sure if this is what you want.
It would help if you gave some expected values in the bottom half. Additionally, I used column C as the lookup instead of column B.

Book1
BCDEFGHIJKLMNOPQRSTUVWXY
7VOYAGE (MUS NO) Mus-1Mus-3Mus-4Mus-6
8Total Time in Days 24Hrs31.414.4045.81.908333333
9Units (Rigs / Barges)123Total HourIn Days
10Working MOSBWorking MOSB Base Jetty Cargo Operation110.041666667
11Waiting MOSB permissionWaiting for ADNOC Permission FWB2.32.30.095833333
12Waiting MOSBWaiting ADNOC Berthing Instruction5.25.20.216666667
13Waiting MOSBWaiting Base Cargo Operation00
14Waiting MOSBWaitng Drilling Material00
15Waiting MOSBCargo Operation Suspended00
16Waitng VTSWaiting VTS permission13.413.40.558333333
17Waitng VTSWaiting on Channel Closure110.041666667
18Waiting PilotWaiting for Pilot00
19WOWWaiting WOW , FOG / POOR VISIBILITY00
20Shifting MOSB BerthShifting Berth ADNOC Port00
21SteamingInTransit / Steaming to Location00
22
23
24Working MOSB Base Jetty Cargo OperationWaiting for ADNOC Permission FWBWaiting ADNOC Berthing InstructionWaiting Base Cargo OperationWaitng Drilling MaterialCargo Operation SuspendedWaiting VTS permissionWaiting on Channel ClosureWaiting for PilotWaiting WOW , FOG / POOR VISIBILITYShifting Berth ADNOC PortInTransit / Steaming to Location
25Mus-112.35.200013.410000
26Mus-3000000000000
27Mus-4000000000000
28Mus-6000000000000
29
30
31
Sheet2
Cell Formulas
RangeFormula
D8,N8,I8D8=SUM(D10:H262)
X8,X10:X21X8=SUM(D8:W8)
Y8,Y10:Y21Y8=X8/24
D25:O28D25=SUM(INDEX(SWITCH($C25,"Mus-1",$D$10:$J$21,"Mus-3",$K$10:$O$21,"Mus-4",$P$10:$T$21,"Mus-6",$U$10:$W$21),MATCH(D$24,$C$10:$C$21,0),0))
 
Upvote 0
Solution
Awoohaw

may than it works just i needed it.

so grateful
Regards
 
Upvote 0

Forum statistics

Threads
1,221,677
Messages
6,161,232
Members
451,692
Latest member
jmaskin

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