IFs, or AND?

Auxie

New Member
Joined
Jun 21, 2017
Messages
10
Hi all,

I'm trying to tidy up and speed up a spreadsheet by having pre-populated formula already to use in specific cells. The code below works perfectly when F9 has a value, however I want the cell to appear blank if F9 doesn't contain a value - currently it will spit out "30658"

I've attempted to use and IFs but it remained the same, I have also attempted to use AND but it kept returning errors. Any help would be greatly appreciated.

PHP:
=IF(F9<1,NETWORKDAYS(D9,NOW(),$N$9:$N$30)-15,"Delivered")

Regards,
Auxie
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Try nesting your IF, i.e.
Code:
[FONT=monospace]=[COLOR=#ff0000]IF(F9="","",[/COLOR]IF([/FONT][FONT=monospace]F9[/FONT][FONT=monospace]<[/FONT][FONT=monospace]1[/FONT][FONT=monospace],[/FONT][FONT=monospace]NETWORKDAYS[/FONT][FONT=monospace]([/FONT][FONT=monospace]D9[/FONT][FONT=monospace],[/FONT][FONT=monospace]NOW[/FONT][FONT=monospace](),[/FONT][FONT=monospace]$N[/FONT][FONT=monospace]$[/FONT][FONT=monospace]9[/FONT][FONT=monospace]:[/FONT][FONT=monospace]$N[/FONT][FONT=monospace]$[/FONT][FONT=monospace]30[/FONT][FONT=monospace])-[/FONT][FONT=monospace]15[/FONT][FONT=monospace],[/FONT][FONT=monospace]"Delivered"[/FONT][FONT=monospace]))[/FONT]
 
Upvote 0
Try nesting your IF, i.e.
Code:
[FONT=monospace]=[COLOR=#ff0000]IF(F9="","",[/COLOR]IF([/FONT][FONT=monospace]F9[/FONT][FONT=monospace]<[/FONT][FONT=monospace]1[/FONT][FONT=monospace],[/FONT][FONT=monospace]NETWORKDAYS[/FONT][FONT=monospace]([/FONT][FONT=monospace]D9[/FONT][FONT=monospace],[/FONT][FONT=monospace]NOW[/FONT][FONT=monospace](),[/FONT][FONT=monospace]$N[/FONT][FONT=monospace]$[/FONT][FONT=monospace]9[/FONT][FONT=monospace]:[/FONT][FONT=monospace]$N[/FONT][FONT=monospace]$[/FONT][FONT=monospace]30[/FONT][FONT=monospace])-[/FONT][FONT=monospace]15[/FONT][FONT=monospace],[/FONT][FONT=monospace]"Delivered"[/FONT][FONT=monospace]))[/FONT]

So simple, feel foolish for not spotting that ! - Thanks.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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