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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
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,215,036
Messages
6,122,794
Members
449,095
Latest member
m_smith_solihull

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