ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF Statement - Excel Version 2002 (https://www.excelbanter.com/excel-worksheet-functions/47316-if-statement-excel-version-2002-a.html)

biz

IF Statement - Excel Version 2002
 
Can you please give me an IF statement for following:

If (Col A1 is equal to LIBOR (Need wildcard for LIBOR that will pick up
LIBOR1 or LIBOR3 or LIBOR6), Then Column B1- Column C1, Else 0)

Column A
LIBOR1
Fixed
LIBOR3
LIBOR6

--
Thanks!
biz

Gord Dibben

biz

Entered in D1

=IF(ISNUMBER(FIND("LIBOR",A1)),B1-C1,0)

No wildcard necessary.


Gord Dibben Excel MVP

On Mon, 26 Sep 2005 14:39:03 -0700, biz wrote:

Can you please give me an IF statement for following:

If (Col A1 is equal to LIBOR (Need wildcard for LIBOR that will pick up
LIBOR1 or LIBOR3 or LIBOR6), Then Column B1- Column C1, Else 0)

Column A
LIBOR1
Fixed
LIBOR3
LIBOR6



Harlan Grove

Gord Dibben wrote...
Entered in D1

=IF(ISNUMBER(FIND("LIBOR",A1)),B1-C1,0)

No wildcard necessary.

....

Perhaps not, but only at the cost of 2 function calls besides the IF
call.

=IF(COUNTIF(A1,"LIBOR?"),B1-C1,0)

or even

=COUNTIF(A1,"LIBOR?")*(B1-C1)



All times are GMT +1. The time now is 04:45 PM.

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