#1   Report Post  
Veronica
 
Posts: n/a
Default 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   Report Post  
Steve R
 
Posts: n/a
Default

=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   Report Post  
Roger H.
 
Posts: n/a
Default

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   Report Post  
Roger H.
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
Trim function doesn't clean out ASCII Code 160 (Space) Ronald Dodge Excel Worksheet Functions 6 January 27th 05 03:48 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM


All times are GMT +1. The time now is 02:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"