Using two formulae

K

Kirsty_H

I want to use two formulae within one cell.
=IF(A50="",260,NETWORKDAYS($B$4,A50)) and
IF(B50="",260,260-NETWORKDAYS($B$4,B50)) are the general formulae I am trying
to use. Can I tell excel to use the first formula and the second formula
together in one cell? (I am working out Number of Working Days using Start
Dates and Leave Dates).
 
B

Bernie Deitrick

Kirsty,

What do you want to do with the two formulas? Add the results?

=IF(A50="",260,NETWORKDAYS($B$4,A50)) + IF(B50="",260,260-NETWORKDAYS($B$4,B50))

Display the results with some words?

="Column A: " & IF(A50="",260,NETWORKDAYS($B$4,A50)) & ", Column B: " &
IF(B50="",260,260-NETWORKDAYS($B$4,B50))


HTH,
Bernie
MS Excel MVP
 
S

Spiky

I want to use two formulae within one cell.
=IF(A50="",260,NETWORKDAYS($B$4,A50)) and
IF(B50="",260,260-NETWORKDAYS($B$4,B50)) are the general formulae I am trying
to use. Can I tell excel to use the first formula and the second formula
together in one cell? (I am working out Number of Working Days using Start
Dates and Leave Dates).

I think you may be looking for this:
=IF(AND(A50="",B50=""),260,NETWORKDAYS($B$4,A50))
 
K

Kirsty_H

Spiky said:
I think you may be looking for this:
=IF(AND(A50="",B50=""),260,NETWORKDAYS($B$4,A50))


That is definitely bringing me closer to what I am trying to do, thank you!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top