Conditional Formula, I think?

Jorja

New Member
Joined
Dec 12, 2018
Messages
2
Hello: I am trying to write a formula to calculate per diem based on the number of days that someone worked AND add an additional day if the person worked 5 or 6 days. Right now I have the following to just count the number of days they have worked:
=COUNTIF(R14:X14,"<>0>)
This returns the result that I am wanting EXCEPT that I need it to add an additional day if they worked 5 days for a total of 6 or if they worked 6 days then a total of 7. HELP! I am at a loss!
TIA
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi,

Assuming you have either 0 (zero) or any number other than 0 in R14:X14


Book1
RSTUVWXY
1411001116
Sheet387
Cell Formulas
RangeFormula
Y14=IFERROR(CHOOSE(COUNTIF(R14:X14,"<>0"),1,2,3,4,6,7,8),0)


EDIT: updated formula for in case the employee didn't work that week.
 
Last edited:
Upvote 0
You're welcome, welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

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