Excel help....

This Forum is the main messageboard to discuss all things Claret and Blue and beyond
Post Reply
StuffyClaret
Posts: 469
Joined: Tue May 03, 2016 8:15 am
Been Liked: 144 times
Has Liked: 93 times

Excel help....

Post by StuffyClaret » Wed Nov 16, 2022 3:56 pm

Sorry for changing the subject from the Mighty Clarets but some of us have to work!

I have designed a spreadsheet that counts days between various processes using the formula =NETWORKDAYS(A1,$S$1) where I have today's date in S1 =TODAY().

The spreadsheet works fine when I have a date in the A1 cell but if it's blank, I get a massive number like 32058.

Is there any way that I can tidy it up to either leave the cell blank or maybe with a zero until I enter data in A1?

Hope this makes sense to the Excel officianados on here!

MancunianClaret
Posts: 463
Joined: Tue Jul 05, 2022 2:46 pm
Been Liked: 175 times
Has Liked: 322 times

Re: Excel help....

Post by MancunianClaret » Wed Nov 16, 2022 3:59 pm

I think this should work...

=IF(A1="","",(NETWORKDAYS(A1,$S$1)))
This user liked this post: StuffyClaret

MancunianClaret
Posts: 463
Joined: Tue Jul 05, 2022 2:46 pm
Been Liked: 175 times
Has Liked: 322 times

Re: Excel help....

Post by MancunianClaret » Wed Nov 16, 2022 4:04 pm

To explain the above

IF(logical_test, [value_if_true],[value_if_false])

Or, in other words - if cell A1 = "" (blank), then show value "" (blank). If cell is not blank, then use formula =NETWORKDAYS(A1,$S$1)
This user liked this post: StuffyClaret

MancunianClaret
Posts: 463
Joined: Tue Jul 05, 2022 2:46 pm
Been Liked: 175 times
Has Liked: 322 times

Re: Excel help....

Post by MancunianClaret » Wed Nov 16, 2022 4:08 pm

If that doesn't work try it with a zero

=IF(A1="",0,(NETWORKDAYS(A1,$S$1)))

(Sorry for the triple post)
This user liked this post: StuffyClaret

wilks_bfc
Posts: 11544
Joined: Thu Jan 21, 2016 12:33 pm
Been Liked: 3195 times
Has Liked: 1875 times
Contact:

Re: Excel help....

Post by wilks_bfc » Wed Nov 16, 2022 5:11 pm

Mancunians answer should work or an alternative is

=If(isblank(A1),’’,(NETWORKDAYS(A1,$S$1)))
These 2 users liked this post: MancunianClaret StuffyClaret

Middle-agedClaret
Posts: 1062
Joined: Sun Jan 24, 2016 7:55 pm
Been Liked: 332 times
Has Liked: 1121 times

Re: Excel help....

Post by Middle-agedClaret » Wed Nov 16, 2022 5:28 pm

…there are some very helpful and aware people on this Board…
These 2 users liked this post: Bosscat StuffyClaret

Bosscat
Posts: 25657
Joined: Mon Oct 01, 2018 9:51 am
Been Liked: 8539 times
Has Liked: 18289 times

Re: Excel help....

Post by Bosscat » Wed Nov 16, 2022 5:31 pm

Middle-agedClaret wrote:
Wed Nov 16, 2022 5:28 pm
…there are some very helpful and aware people on this Board…
Its a go to place ...

Today, still wanted by the government they survive as soldiers of fortune.
If you have a problem, if no one else can help, and if you can find them...
maybe you can hire The UTC-Team."

They love it when a plan comes together 😉
These 2 users liked this post: StuffyClaret wilks_bfc

StuffyClaret
Posts: 469
Joined: Tue May 03, 2016 8:15 am
Been Liked: 144 times
Has Liked: 93 times

Re: Excel help....

Post by StuffyClaret » Wed Nov 16, 2022 5:47 pm

Perfect.....thanks everyone!

cricketfield73
Posts: 735
Joined: Thu Jan 14, 2016 10:46 pm
Been Liked: 424 times
Has Liked: 441 times
Location: Nelson

Re: Excel help....

Post by cricketfield73 » Thu Nov 17, 2022 1:04 pm

StuffyClaret wrote:
Wed Nov 16, 2022 5:47 pm
Perfect.....thanks everyone!
A few years ago I had a similar(ish) question regarding an AutoCAD issue. Whilst there are mountains of sites dedicated to this subject, my first port of call was to just post a quick message in the hope that someone on here could help out. Within a few minutes I had several helpful responses (if my memory serves me well, the poster Rileybobs was particularly helpful) and my query was answered perfectly in no time at all.
I don't post on here too often, but there are certainly times when I am so glad that this messageboard is here.
It's great to have a facility like this on hand, especially with the Claret kinship - the one big thing that links us all together.
These 6 users liked this post: Bosscat StuffyClaret CoolClaret MancunianClaret Middle-agedClaret Zlatan

Post Reply