Can these 2 formulas be merged in to 1

Toonies

Board Regular
Joined
Jun 8, 2009
Messages
236
Hi and thank you for taking time ou to look at my question


I have the following 2 formulas which work fine on their own

Excel Workbook
ABCDEFGH
5
6COLLEAGUE NAMEDEPARTMENTSHIFT06:00
7|
806:30
9
10ANDREA ALLEN8:0017:00REVERSE PICK
110
Master Schedule


I am wondering is there any way to merge them into one

I look forward to any suggestions or pointers if it is possible.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
What is the purpose of trying to merge them, the 2 formula seem unrelated.

A totally wild guess.

=IF(AND($E10<=H$6,$F10>H$6),IF(ISERROR(INDEX(Task!$A$1:$A$20,MATCH($A10,'SAT DRAFT'!G$8:G$27,0))),"",INDEX(Task!$A$1:$A$20,MATCH($A10,'SAT DRAFT'!G$8:G$27,0))),"")
 
Upvote 0
Hi it is an daily task schedule

The 1st formula will display tasks that have been allocated from sheet "SAT DRAFT"

the 2nd formula will hilight the cells when it falls within a certain time range.

Just wondering if I could combine them
 
Upvote 0
what do you mean "highlight"? that would suggest conditional formatting, yet both formula are in the worksheet.
 
Upvote 0
Yes Conditional formatting is used

Cell H10

SUMPRODUCT(COUNTIF(H10,"*"&Task&"*"))>0

this highlights the cell "Blue"

Cell H11

If equal to 0

Highlight cell & Text "White"

If equal to 1

Highlight cell & Text "Blue"
 
Upvote 0
Try

AND($E10<=H$6,$F10>H$6,SUMPRODUCT(COUNTIF(H10,"*"&Task&"*"))>0)

as your conditional format rule for H10.
 
Upvote 0
Hi this indeed does pont me in the right direction as it highlights the cell when between a certain time frame.

what I am looking for if possible is to highlight the cells within the time frame whilst still showing any allocated tasks from sheet "SAT DRAFT"
 
Upvote 0
With your original formula in H10, it should do exactly the same as what you have already.
 
Upvote 0
Hi it does but only for specific cells that have allocated tasks in.

Would it be possible to highlight the full time frame say for 6:00 to 8:00 and any any allocated tasks highlighted the same color.

The cells outside that range would have no color fill and any allocated tasks would be shown a different color.

I hope that I have explained it correctly
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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