Home |
Search |
Today's Posts |
#1
|
|||
|
|||
If function
In cell A1 I have: action, fiction, drama
If I have the word "drama" in cell A1, I want to enter the word "drama" in cell A2. How can I do this? I tried to use the if function but it doesn't work because the words "action" and "fiction" are on the cell. |
#2
|
|||
|
|||
=if(A1="drama","drama","")
"Veronica" wrote in message ... In cell A1 I have: action, fiction, drama If I have the word "drama" in cell A1, I want to enter the word "drama" in cell A2. How can I do this? I tried to use the if function but it doesn't work because the words "action" and "fiction" are on the cell. |
#3
|
|||
|
|||
Hello Veronica. As a follow up to the previous answer, you might need to put
an asterisk in front of the first argument to the if finction to account for the preceeding text : =IF(A1=*"drama","drama",""). This lets the function know that there's other text within the cell, that comes BEFORE the text "drama". "Veronica" wrote in message ... In cell A1 I have: action, fiction, drama If I have the word "drama" in cell A1, I want to enter the word "drama" in cell A2. How can I do this? I tried to use the if function but it doesn't work because the words "action" and "fiction" are on the cell. |
#4
|
|||
|
|||
Oooops......put the asterisk WITHIN the quotation marks--- sorry.
"Roger H." wrote in message ... Hello Veronica. As a follow up to the previous answer, you might need to put an asterisk in front of the first argument to the if finction to account for the preceeding text : =IF(A1=*"drama","drama",""). This lets the function know that there's other text within the cell, that comes BEFORE the text "drama". "Veronica" wrote in message ... In cell A1 I have: action, fiction, drama If I have the word "drama" in cell A1, I want to enter the word "drama" in cell A2. How can I do this? I tried to use the if function but it doesn't work because the words "action" and "fiction" are on the cell. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Hyperlinks using R[1]C[1] and offset function in its cell referenc | Excel Worksheet Functions | |||
Conversion | Excel Worksheet Functions | |||
Trim function doesn't clean out ASCII Code 160 (Space) | Excel Worksheet Functions | |||
Formula to list unique values | Excel Worksheet Functions | |||
Find a Function to use accross different worksheets | Excel Worksheet Functions |