ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using two formulae (https://www.excelbanter.com/excel-worksheet-functions/197794-using-two-formulae.html)

Kirsty_H

Using two formulae
 
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).

Bernie Deitrick

Using two formulae
 
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


"Kirsty_H" wrote in message
...
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).




Spiky

Using two formulae
 
On Aug 6, 10:19 am, Kirsty_H
wrote:
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))

Kirsty_H[_2_]

Using two formulae
 
"Spiky" wrote:

On Aug 6, 10:19 am, Kirsty_H
wrote:
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))



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



All times are GMT +1. The time now is 03:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com