ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   My formula is =IF(B5="B",TODAY(),"") (https://www.excelbanter.com/excel-worksheet-functions/145245-my-formula-%3Dif-b5%3D-b-today.html)

Tredown

My formula is =IF(B5="B",TODAY(),"")
 
The formula works fine if the cell contains the Letter B but I would like to
have the same result if I typed B or R . I am not sure if I could nest this
into the formula.

Chip Pearson

My formula is =IF(B5="B",TODAY(),"")
 
Use the OR function.

=IF(OR(B5="B",B5="R"),TODAY(),"")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting LLC
www.cpearson.com
(email on the web site)

"Tredown" wrote in message
...
The formula works fine if the cell contains the Letter B but I would like
to
have the same result if I typed B or R . I am not sure if I could nest
this
into the formula.




David Biddulph[_2_]

My formula is =IF(B5="B",TODAY(),"")
 
=IF(OR(B5="B",B5="R"),TODAY(),"")
--
David Biddulph

"Tredown" wrote in message
...
The formula works fine if the cell contains the Letter B but I would like
to
have the same result if I typed B or R . I am not sure if I could nest
this
into the formula.




Teethless mama

My formula is =IF(B5="B",TODAY(),"")
 
=IF(OR(B5={"B","R"}),TODAY(),"")


"Tredown" wrote:

The formula works fine if the cell contains the Letter B but I would like to
have the same result if I typed B or R . I am not sure if I could nest this
into the formula.



All times are GMT +1. The time now is 08:31 AM.

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