#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default IF Statement???

I am looking for a way to populate a cell with a value if another cell has a
certain word in it. If "A1" has "newark pre-owned" in it I would like to
search for "pre-owned" only and insert my value in "B1."

Thanks in advance for your assistance.

Fish
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default IF Statement???

Here's one way:

Enter this formula in B1:

=IF(COUNTIF(A1,"*pre-owned*"),your_value_here,"")

Replace your_value_here with your value. If your value is a number just
enter that number: 10. If your value is a TEXT string enclose it in quotes:
"Yes".

The "" at the end will leave the cell blank if pre-owned is not found in
cell a1.

Biff

"Fish" wrote in message
...
I am looking for a way to populate a cell with a value if another cell has
a
certain word in it. If "A1" has "newark pre-owned" in it I would like to
search for "pre-owned" only and insert my value in "B1."

Thanks in advance for your assistance.

Fish



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default IF Statement???

Awesome, thank you very much. You have saved me hours of sorting through over
50,000 terms and pasting as needed. Thanks again.

Fish

"T. Valko" wrote:

Here's one way:

Enter this formula in B1:

=IF(COUNTIF(A1,"*pre-owned*"),your_value_here,"")

Replace your_value_here with your value. If your value is a number just
enter that number: 10. If your value is a TEXT string enclose it in quotes:
"Yes".

The "" at the end will leave the cell blank if pre-owned is not found in
cell a1.

Biff

"Fish" wrote in message
...
I am looking for a way to populate a cell with a value if another cell has
a
certain word in it. If "A1" has "newark pre-owned" in it I would like to
search for "pre-owned" only and insert my value in "B1."

Thanks in advance for your assistance.

Fish




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default IF Statement???

You're welcome. Thanks for the feedback!

Biff

"Fish" wrote in message
...
Awesome, thank you very much. You have saved me hours of sorting through
over
50,000 terms and pasting as needed. Thanks again.

Fish

"T. Valko" wrote:

Here's one way:

Enter this formula in B1:

=IF(COUNTIF(A1,"*pre-owned*"),your_value_here,"")

Replace your_value_here with your value. If your value is a number just
enter that number: 10. If your value is a TEXT string enclose it in
quotes:
"Yes".

The "" at the end will leave the cell blank if pre-owned is not found in
cell a1.

Biff

"Fish" wrote in message
...
I am looking for a way to populate a cell with a value if another cell
has
a
certain word in it. If "A1" has "newark pre-owned" in it I would like
to
search for "pre-owned" only and insert my value in "B1."

Thanks in advance for your assistance.

Fish






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
if statement trimatt Excel Discussion (Misc queries) 2 April 28th 06 11:07 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If and Or statement Matt Excel Discussion (Misc queries) 4 June 29th 05 09:37 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


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

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

About Us

"It's about Microsoft Excel"