troy001100

New Member
Joined
Jan 21, 2019
Messages
4
Hi.

I need some help with a formula, please.

see the below formula:

=IF(OR(J$13="",J$13<$Q$8,$A14=""),"",IF(NETWORKDAYS.INTL(J$13,J$13,weekend,holidays)=0,0,IFERROR(INDEX(daysoff_type,MATCH(J$13&" "&$A14,daysoff_lookup,0)),MID($B14,MOD(NETWORKDAYS.INTL($Q$8,J$13,weekend,holidays)-1,LEN($B14))+1,1))))

Pic1 - Starting Point
Pic2 - After I select Holidays only

I want to keep the red highlight
but I don't want to update it 0 and I don't want it to push the roster over by one day I want it to remain the same as pic1.

Any other advice would be fantastic


Many thanks
Troy
 

Attachments

  • pic1.png
    pic1.png
    40.5 KB · Views: 16
  • pic2.png
    pic2.png
    39.9 KB · Views: 16

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,215,516
Messages
6,125,284
Members
449,218
Latest member
Excel Master

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