ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Two "IF" functions in one cell (https://www.excelbanter.com/excel-worksheet-functions/197159-two-if-functions-one-cell.html)

Sunny

Two "IF" functions in one cell
 
I was wondering if it is possible to insert two IF functions in one cell.

For instance =IF(A1="x","a","") and IF(A1="y", "b","")

Thanks.

Gary''s Student

Two "IF" functions in one cell
 
=IF(A1="x","a",IF(A1="y","b",""))
--
Gary''s Student - gsnu200797

RagDyeR

Two "IF" functions in one cell
 
You do what is called "nesting".

=If(A1="x","a",If(A1="y","b",""))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Sunny" wrote in message
...
I was wondering if it is possible to insert two IF functions in one cell.

For instance =IF(A1="x","a","") and IF(A1="y", "b","")

Thanks.





All times are GMT +1. The time now is 04:19 AM.

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