SUMIFS formula column based on Cell reference

conorrey

New Member
Joined
Sep 27, 2010
Messages
43
Office Version
  1. 365
Platform
  1. Windows
HI,
I have a SUMIFS formula like below. How can I get the Sum Column to change based on a cell value.

So currently it is set to sum column F. if I changed a drop down list named REVTYPE to a heading in column G how can i get the SUNIFS formula to sum that column instead of F.

Any help would be great.

Conor

This is the formula
=SUMIFS('2023 by Created Date'!F:F,'2023 by Created Date'!$M:$M,$V14,'2023 by Created Date'!$P:$P,">="&'This Week Created Bookings'!$W$9,'2023 by Created Date'!$P:$P,"<="&'This Week Created Bookings'!$W$10,'2023 by Created Date'!A:A,">="&$AA$9,'2023 by Created Date'!A:A,"<="&$AA$10,'2023 by Created Date'!O:O,$W$12)

This is where the Data is
ArrivalDepartureAliasRes #PaxRHIREFOODBEVOTHERSUB-TOTALACCOMTOTALSegmentMethodStatusCreated
45262​
45262​
Test
123456​
1​
0​
282.82​
24.39​
41.46​
348.67​
0​
348.67​
LIKETELConfirmed
45208​

Named Range REVTYPE
RHIRE
FOOD
BEV
OTHER
SUB-TOTAL
ACCOM
TOTAL
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Which cell has the name of the column you want to sum?
 
Upvote 0
Ok, how about
Excel Formula:
=SUMIFS(INDEX('2023 by Created Date'!F:Z,0,XMATCH($V$11,'2023 by Created Date'!$F$1:$Z$1)),'2023 by Created Date'!$M:$M,$V14,'2023 by Created Date'!$P:$P,">="&'This Week Created Bookings'!$W$9,'2023 by Created Date'!$P:$P,"<="&'This Week Created Bookings'!$W$10,'2023 by Created Date'!A:A,">="&$AA$9,'2023 by Created Date'!A:A,"<="&$AA$10,'2023 by Created Date'!O:O,$W$12)
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,250
Messages
6,171,036
Members
452,374
Latest member
keccles

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