Displaying a value from a specific data range when using the Match function

Cris4py

New Member
Joined
Feb 18, 2012
Messages
23
Hi

I'm using a perpetual calendar where i plot holiday dates that i am now extending to include other work activities so all are visible in a single place. The dates plot perfectly on to the Team Calendar but i can't get it to display the correct activity type. It takes the first activity type in the data range and will use it for all subsequent dates regardless of what it should be. What i want to happen is that the Calendar displays the following against the dates in the Activity Input worksheet;
Person01
3rd & 4th Jan = H
10th Jan = SM
11th Jan = IM
18th Jan = CM
........
The formular running in L8 (01 - Team Calendar.png) is;
{=IF(ISNUMBER(MATCH(1,IF(L7>=HFrom01,IF(L7<=HolTo01,1)),0)),Activity01,"")}

This is looking up the input date (02 - Activity Input.png), confirming that there is something for this date and currently showing an "H" in the cell L8 where i need it to display the corresponding value from the Activity Input worksheet (Activity01 data range).

Any guidance on how to get Excel to pick the correct value from the list, for then plotted date, and or any other suggestions on how i can achieve differentaitng between holiday and work activity in the calendar view, would be really gratefully received.

Thank you for any help or guidance you are able to provide to me.
 

Attachments

  • 01 - Team Calendar.png
    01 - Team Calendar.png
    72.2 KB · Views: 11
  • 02 - Activity Input.png
    02 - Activity Input.png
    77.3 KB · Views: 12

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,214,780
Messages
6,121,522
Members
449,037
Latest member
tmmotairi

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