Workday formula - adjust for a zero occurrence

HWillis

Board Regular
Joined
Jun 18, 2009
Messages
62
Office Version
  1. 2016
Hi there,

I have a formula that calculates the KPI days from the date deemed adequate.

=IFERROR(WORKDAY([@[Date Allocated or Adequate]],[@[DPE KPI(working days)]],Holidays),"")............ returning the DPE KPI Target Date.

If the KPI working days (returned from a vlookup) happen to be zero I would like the DPE KPI Target Date column to be blank.

f6fcef589af41a2ff1e5c55e467d9476.png

f6fcef589af41a2ff1e5c55e467d9476

f6fcef589af41a2ff1e5c55e467d9476


Is there a way I can alter the formula above to do this??

Many thanks, H. :)
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

RasGhul

Well-known Member
Joined
Jul 15, 2016
Messages
797
Office Version
  1. 365
Platform
  1. Windows
Hi,

You can turn off zero's in File/Options/Advanced - Scroll down to "Display options for this Sheet" - Un-tick "Show a zero in cells that have a zero value".
 
Upvote 0

HWillis

Board Regular
Joined
Jun 18, 2009
Messages
62
Office Version
  1. 2016
Hi,

Thanks for your reply.

I am happy for the 0 to show - it's the date in the last column I would like to show as blank. It currently shows as the date @[Date Allocated or Adequate] as there are zero days added. This get confusing to users of the spreadsheet.

You may notice that the 'Northern KPI (days)' showing 7 - calculates to 9/9/2019 as I require.

Cheers, H. :)

 
Upvote 0

RasGhul

Well-known Member
Joined
Jul 15, 2016
Messages
797
Office Version
  1. 365
Platform
  1. Windows
Ok try,

Northern KPI Days calculates to zero so you could use that;

=IF(Northern KPI Days=0,"",IFERROR(WORKDAY([@[Date Allocated or Adequate]],[@[DPE KPI(working days)]],Holidays),""))
 
Upvote 0

HWillis

Board Regular
Joined
Jun 18, 2009
Messages
62
Office Version
  1. 2016
Awesome - thank you RasGhul :)



=IF([DPE KPI (working days)]=0,"",IFERROR(WORKDAY([@[Date Allocated or Adequate]],[@[DPE KPI (working days)]],Holidays),""))
 
Upvote 0

Forum statistics

Threads
1,186,228
Messages
5,956,703
Members
438,260
Latest member
Sajeer0484

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
Top