Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default Using IF to find text + wildcard?

Hello All,
I am wanting to move one of three letters from one column to another and
then make a word from it's beginning letter, i.e., F would become FRUIT.
For example:
COLUMN A COLUMN B
F,X,U =IF(A1="F","FRUIT")

This works fine if it were just F, but the comma and additional letters
indicate FALSE. I have tried "F&", "F*", "F?"

Any help would be greatly appreciated!
Bryce
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default Using IF to find text + wildcard?

=if(isnumber(search("F",a1)),"fruit"," ")

if case sensitive needed replace the "search" function with "find"

"Outlook, eh?" wrote:

Hello All,
I am wanting to move one of three letters from one column to another and
then make a word from it's beginning letter, i.e., F would become FRUIT.
For example:
COLUMN A COLUMN B
F,X,U =IF(A1="F","FRUIT")

This works fine if it were just F, but the comma and additional letters
indicate FALSE. I have tried "F&", "F*", "F?"

Any help would be greatly appreciated!
Bryce

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Using IF to find text + wildcard?

I am wanting to move one of three letters from one column to another and
then make a word from it's beginning letter, i.e., F would become FRUIT.
For example:
COLUMN A COLUMN B
F,X,U =IF(A1="F","FRUIT")

This works fine if it were just F, but the comma and additional letters
indicate FALSE. I have tried "F&", "F*", "F?"


Perhaps this way...

=IF(SEARCH("F",A1),"FRUIT")

SEARCH is non-case-sensitive, use FIND if you want it to be case-sensitive.

Rick
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Using IF to find text + wildcard?

I am wanting to move one of three letters from one column to another and
then make a word from it's beginning letter, i.e., F would become FRUIT.
For example:
COLUMN A COLUMN B
F,X,U =IF(A1="F","FRUIT")

This works fine if it were just F, but the comma and additional letters
indicate FALSE. I have tried "F&", "F*", "F?"


Perhaps this way...

=IF(SEARCH("F",A1),"FRUIT")


Wow! I screwed up two parts of that...

=IF(ISNUMBER(SEARCH("F",A1)),"FRUIT","")

Rick
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default Using IF to find text + wildcard?

Rick,
Thanks so much, it would like a charm! But one more thing (I forgot). I
would like to do this for an entire column, which is from A1:A2568, and paste
it in the column next to it, B1:B2568. Any ideas?

Bryce


"Rick Rothstein (MVP - VB)" wrote:

I am wanting to move one of three letters from one column to another and
then make a word from it's beginning letter, i.e., F would become FRUIT.
For example:
COLUMN A COLUMN B
F,X,U =IF(A1="F","FRUIT")

This works fine if it were just F, but the comma and additional letters
indicate FALSE. I have tried "F&", "F*", "F?"


Perhaps this way...

=IF(SEARCH("F",A1),"FRUIT")


Wow! I screwed up two parts of that...

=IF(ISNUMBER(SEARCH("F",A1)),"FRUIT","")

Rick



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default Using IF to find text + wildcard?

Thanks Rick it worked very well! However, I forgot to mention one thing. I
would like to use your forumula to look through an entire column A2:A2568 and
if there is an "F", I would like to insert the word "FRUIT", in the column
next to it (B2:B2568).

Thanks so much for your help, I really, really appreciate it!
Bryce


"Rick Rothstein (MVP - VB)" wrote:

I am wanting to move one of three letters from one column to another and
then make a word from it's beginning letter, i.e., F would become FRUIT.
For example:
COLUMN A COLUMN B
F,X,U =IF(A1="F","FRUIT")

This works fine if it were just F, but the comma and additional letters
indicate FALSE. I have tried "F&", "F*", "F?"


Perhaps this way...

=IF(SEARCH("F",A1),"FRUIT")


Wow! I screwed up two parts of that...

=IF(ISNUMBER(SEARCH("F",A1)),"FRUIT","")

Rick

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Using IF to find text + wildcard?

=IF(LEFT(A1,1)="F","Fruit","not found")

"Outlook, eh?" wrote:

Hello All,
I am wanting to move one of three letters from one column to another and
then make a word from it's beginning letter, i.e., F would become FRUIT.
For example:
COLUMN A COLUMN B
F,X,U =IF(A1="F","FRUIT")

This works fine if it were just F, but the comma and additional letters
indicate FALSE. I have tried "F&", "F*", "F?"

Any help would be greatly appreciated!
Bryce

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Using IF to find text + wildcard?

Thanks Rick it worked very well! However, I forgot to mention one thing. I
would like to use your forumula to look through an entire column A2:A2568
and
if there is an "F", I would like to insert the word "FRUIT", in the column
next to it (B2:B2568).


You will have to copy the formula down through the entire column. If you are
not sure of how to do that, highlight the cell with the formula that "works
well", look at the bottom right corner of that cell for a very small black
square... place your cursor over the black square (the cursor will turn into
a cross... a thin plus sign), left click and drag down through all of the
cells in the column. Doing this will make the relative A1 (or, if you are
starting in row 2, A2) reference change with each row so the formula is
adjusted to the row it is on.

Rick

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default Using IF to find text + wildcard?

Thank you so much! You have saved our non-profit about 8 hours!!
"Teethless mama" wrote:

=IF(LEFT(A1,1)="F","Fruit","not found")

"Outlook, eh?" wrote:

Hello All,
I am wanting to move one of three letters from one column to another and
then make a word from it's beginning letter, i.e., F would become FRUIT.
For example:
COLUMN A COLUMN B
F,X,U =IF(A1="F","FRUIT")

This works fine if it were just F, but the comma and additional letters
indicate FALSE. I have tried "F&", "F*", "F?"

Any help would be greatly appreciated!
Bryce

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
COUNT or COUNTIF using wildcard text? WiFiMike2006 Excel Worksheet Functions 11 January 12th 07 11:12 PM
Excel custom autofilter- how to find wildcard characters but not as wildcards (e.g. "?") in a cell Keith Excel Discussion (Misc queries) 3 December 22nd 06 02:27 PM
How do I count wildcard text meeting certain criteria in EXCEL? cybermaksim Excel Worksheet Functions 1 February 17th 06 03:03 AM
can you find specific text in a string ignoring any other text chriscp Excel Discussion (Misc queries) 1 September 18th 05 09:54 PM
How do you find and replace a Wildcard character in Excel? Wildcard Excel Discussion (Misc queries) 8 August 18th 05 01:18 AM


All times are GMT +1. The time now is 05:56 PM.

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"