Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I want to write a formula like this: if column D contains the word zebra in
any cell, then each corresponding cell in column A will say Stripe Can this be done? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() vacation wrote: I want to write a formula like this: if column D contains the word zebra in any cell, then each corresponding cell in column A will say Stripe Can this be done? Hi vacation In A1 type =IF(D1="Zebra","Stripe","SomethingElse") Copy down as necessary. Regards Steve |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks! That was fast. Its almost working. I neglected to say that the word
Zebra is part of a text string in the cell. I'm just looking for that word and not the others. What do you suggest "Scoops" wrote: vacation wrote: I want to write a formula like this: if column D contains the word zebra in any cell, then each corresponding cell in column A will say Stripe Can this be done? Hi vacation In A1 type =IF(D1="Zebra","Stripe","SomethingElse") Copy down as necessary. Regards Steve |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If it is case-sensitive, use FIND(), otherwise use SEARCH()
IF(not(iserror(search(D1,"Zebra"))),"Stripe","Some thingElse") "vacation" wrote: Thanks! That was fast. Its almost working. I neglected to say that the word Zebra is part of a text string in the cell. I'm just looking for that word and not the others. What do you suggest "Scoops" wrote: vacation wrote: I want to write a formula like this: if column D contains the word zebra in any cell, then each corresponding cell in column A will say Stripe Can this be done? Hi vacation In A1 type =IF(D1="Zebra","Stripe","SomethingElse") Copy down as necessary. Regards Steve |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The formula is producing the result SomethingElse for each cell in column
A...like its never seeing that Zebra is found in column D at all and therefore never returns Stripe when it should. "Duke Carey" wrote: If it is case-sensitive, use FIND(), otherwise use SEARCH() IF(not(iserror(search(D1,"Zebra"))),"Stripe","Some thingElse") "vacation" wrote: Thanks! That was fast. Its almost working. I neglected to say that the word Zebra is part of a text string in the cell. I'm just looking for that word and not the others. What do you suggest "Scoops" wrote: vacation wrote: I want to write a formula like this: if column D contains the word zebra in any cell, then each corresponding cell in column A will say Stripe Can this be done? Hi vacation In A1 type =IF(D1="Zebra","Stripe","SomethingElse") Copy down as necessary. Regards Steve |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Oops. Sorry about that..had some arguments reversed
=IF(NOT(ISERROR(SEARCH("Zebra",D84))),"Stripe","So methingElse") "vacation" wrote: The formula is producing the result SomethingElse for each cell in column A...like its never seeing that Zebra is found in column D at all and therefore never returns Stripe when it should. "Duke Carey" wrote: If it is case-sensitive, use FIND(), otherwise use SEARCH() IF(not(iserror(search(D1,"Zebra"))),"Stripe","Some thingElse") "vacation" wrote: Thanks! That was fast. Its almost working. I neglected to say that the word Zebra is part of a text string in the cell. I'm just looking for that word and not the others. What do you suggest "Scoops" wrote: vacation wrote: I want to write a formula like this: if column D contains the word zebra in any cell, then each corresponding cell in column A will say Stripe Can this be done? Hi vacation In A1 type =IF(D1="Zebra","Stripe","SomethingElse") Copy down as necessary. Regards Steve |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating a Custom Excel Function to Calculate Gini Coefficients | Excel Worksheet Functions | |||
Date & Time | New Users to Excel | |||
Hyperlinks using R[1]C[1] and offset function in its cell referenc | Excel Worksheet Functions | |||
Conversion | Excel Worksheet Functions | |||
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. | Excel Worksheet Functions |