If Sumproduct Help

Kevin3

New Member
Joined
Feb 19, 2018
Messages
2
Hello,

I am attempting to build a formula that displays the status of employees on a calendar. I am trying to get the "Value If True" portion of the formula to change based on the status selected. So, if Vacation is selected, then "Vac" is displayed. If "Sick" is selected, then "Vac" changes to "Sick". Any help would be appreciated.

This is the Formuala I'm using now:
=IF($A8<>"",IF(SUMPRODUCT((Event!$M$6:$M$501<=E$4)*(Event!$N$6:$N$501>=E$4)*(Event!$K$6:$K$501=$A8)*(Event!$L$6:$L$501="Vacation")),"Vac",IF(SUMPRODUCT((Event!$M$6:$M$501<=E$4)*(Event!$N$6:$N$501>=E$4)*(Event!$K$6:$K$501=$A8)*(Event!$L$6:$L$501="Sick")),"Sick","")),0)

This is the Formula I'm trying to build:

=IF(SUMPRODUCT((Event!$M$6:$M$501<=D$4)*(Event!$N$6:$N$501>=D$4)*(Event!$K$6:$K$501=$A8)*((Event!$L$6:$L$501="Vacation")+(Event!$L$6:$L$501="Sick"))),"Vac","")
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
This seems very complicated, are 495 lines of something likely to be an amount, or are you trying to get the answer this a line at a time as eachof these lines is an individual?
 
Upvote 0
This seems very complicated, are 495 lines of something likely to be an amount, or are you trying to get the answer this a line at a time as eachof these lines is an individual?

I think I have the lines figured out. I am more focused on trying to change the value_if_true based on the selection within the sumproduct.
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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