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
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
what is the condition for you to choose a 1 or 0?
 
Upvote 0
What should it display if col H is blank?
 
Upvote 0
If column H is blank, column P needs to display a 0 and column Q needs to display the same as column R

The condition would whether column C has scheduled in it.

Thank you for your quick responses.
 
Upvote 0
Ok, for P5
Excel Formula:
=IF(OR(H5="",N5<>""),0,J5-H5)
 
Upvote 0
Using that that formula in column Q but changing J to L worked brilliantly also, thank you,

Just need the percentage in column S to show 100% now.
Doh, no it didn't work in column Q, column Q needs to show the same as column R
 
Upvote 0
Why should Q9 be 1 but Q10 be 0?
 
Upvote 0
Why should Q9 be 1 but Q10 be 0?
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
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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