On add to Formula to return a 1 or 0

Stef9910

Board Regular
Joined
Nov 2, 2022
Messages
72
Office Version
  1. 2010
Platform
  1. Windows
Hello Awesome People of the is forum,

I am after some assistance if anyone knows how to do this,

I have (with the help from Fluff on this site, thank you Fluff) made great progress with my workbook, but in the below where it has the 45k numbers I would like it to display a 1 or 0, the existing formula in the cell needs to stay the same as it is used in all cells, so wondering if would be possible to add on the existing formula to display a 1 or 0,

All the data entered is in the correct place and cannot be moved, or it messes up the rest of the spreadsheet,

I understand that the 45k number is displaying because there is a date in the J9 (the start date) which needs to remain in place.

It is only the rows where it says Scheduled that the 45k numbers displays on.

Also if possible, on the same row, I would like the percentage to display 100%, so would need an add on to that formula also.

Is this possible?

Any help will be greatly appreciated, thank you

Stefan

Formula add on.xlsx
CDEFGHIJKLMNOPQRS
2
3Do not Enter Data Here
4TypeStatusWithin TimeframesReportedNumberRecived DateReceived TimeStart DateStart TimeEnd DateEnd TimeRTP DateRTP TimeDays until StartedSpanStart to End Days% Facilitated
5UnscheduledCompletedYes Yes 2303/012431/12/2219:1631/12/2219:4530/4/230120120100%
6UnscheduledCompletedNoYes 2303/039529/3/2321:2330/3/2317:4520/4/2316:061222195%
7UnscheduledCompletedYes No2/4/2315:312/4/2316:3030/4/2302828100%
8UnscheduledCompletedYes No2/4/2320:422/4/2321:454/4/2315:59022100%
9ScheduledCompletedYes No3/4/236:114/4/2313:39450194502010%
10ScheduledCompletedYes No4/4/236:454/4/2310:56450204502000%
11UnscheduledCompletedYes No4/4/231:364/4/234:007/4/2316:34033100%
12ScheduledCompletedYes No5/4/236:226/4/2319:58450214502210%
13UnscheduledNot CompletedNoNo2304/00445/4/234:375/4/2310:280000%
14UnscheduledNot CompletedNoNo2304/00435/4/233:395/4/2317:470000%
15UnscheduledCompletedNoNo2304/00425/4/233:387/4/2320:1530/4/232252392%
16UnscheduledCompletedNoNo2304/00203/4/2323:094/4/2311:555/4/2317:5512150%
Sheet1
Cell Formulas
RangeFormula
P5:P16P5=IF(N5="",J5-H5,0)
Q5:Q16Q5=IF(N5<>"",N5,L5)-H5
R5:R16R5=IF(N5="",L5-J5,0)
S5:S16S5=IFERROR(R5/Q5, 0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
S5:S16Other TypeDataBarNO
G14:G16Expression=E26="no"textNO
 
Q10 should be 1 also

You have identified another problem, R10 should show 1, but for some reason a job in and out on the same day is show 0 days, I would like it to show 1
If Q displayed the same as R I'm pretty sure that will sort out the percentage column itself!
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Ok, this will put 1 into the cell if H is blank
Excel Formula:
=IF(H5="",1,IF(N5<>"",N5,L5)-H5)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
Hi Fluff,

Just thought i would let you know that through you help with the above, I have solved R10 with =IF(N10="", IF(L10=J10,1,L10-J10), 0) and for Q13 by using =IF(H13="", 1, IF(L13="", IF(N13=H13, 1, N13-H13), IF(N13<>"", N13, L13)-H13))

Again thank you for all your help, it really has helped me
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,195
Members
452,616
Latest member
intern444

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