If problem

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
771
Office Version
  1. 365
Platform
  1. Windows
Afternoon,

I have a multiple IF problem.

I am suing the following Sum to identify if an agent is on shift or not so i can work out productivity of an agent

=IF(C4="ON SHIFT",C26/C33,C4)

My issue is that it is upto an agent to put a figure in "C33" i get a #DIV/0! error. Is there anything i can do so that #DIV/0! doesnt appear and replace it with a 0 or a message in the cell "Missing Calls"

If possible a formula answer would be best as there a 6 places on the sheet that this can occur or a VB answer that can cover this in 1 go.

Many Thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Another alternative to handle if they might enter 0 into C33:

=IF(VALUE(C33)=0,"Missing Data",IF(C4="ON SHIFT",C26/C33,C4))
 
Upvote 0
Good Afternoon,

Thanks for the formula, but i have a slight problem.

=IF(VALUE(C33)=0,"Missing Data",IF(C4="ON SHIFT",C26/C33,C4))

Is there any chance the formula can check "C4" to see if it has "ON SHIFT" before it checks C33. The reason i need it to do this is so that if it doesnt say on shift it will leave the reference other than "ON SHIFT" instead of missing data. I need it to leave the other options instead which are HOLIDAY, ILL or RDO.

Cheers
 
Upvote 0
Try just throughing another if statment around it like this:

=if(c4="ON SHIFT",IF(VALUE(C33)=0,"Missing Data",IF(C4="ON SHIFT",C26/C33,C4)),c4)
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,876
Members
452,949
Latest member
Dupuhini

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