Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default How to use IF AND and wildcard for text ending?

Hello,
I'm trying to get a cell to show a message if two other cells contain some
specific text:
ex.
=IF(AND(A3="RRA05*";C3="KRF");"Tipo 4";"Tipo 1")

but I'm having trouble with the wildcard *

I have already tried ...A3="RRA05?????"... as this article code is always 10
digit long, but it also doesn't work

Should I format the cells in any specific way (as "text" or something else)
so it will work?

Thank you very much in advance, for all the help provided

Susana
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 269
Default How to use IF AND and wildcard for text ending?

Try
=IF(AND(LEFT(A3,5)="RRA05",C3="KRF"),"Tipo 4","Tipo 1")

or if the RRA05 is not always at the start


=IF(AND(ISERROR(FIND("RRA05",A3))=FALSE,C3="KRF"), "Tipo 4","Tipo 1")


"Susana" wrote:

Hello,
I'm trying to get a cell to show a message if two other cells contain some
specific text:
ex.
=IF(AND(A3="RRA05*";C3="KRF");"Tipo 4";"Tipo 1")

but I'm having trouble with the wildcard *

I have already tried ...A3="RRA05?????"... as this article code is always 10
digit long, but it also doesn't work

Should I format the cells in any specific way (as "text" or something else)
so it will work?

Thank you very much in advance, for all the help provided

Susana

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 209
Default How to use IF AND and wildcard for text ending?

=IF(IF(ISERROR(SEARCH("RRA05",A3)),0,1)+IF(ISERROR (SEARCH("KRF",C3)),0,1)=2,"Tipo 4","Tipo 1")

FYI,
'Search' will look disregard upper/lower case.
'Find' will consider case.

--
Hope this helps.
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown


"Susana" wrote:

Hello,
I'm trying to get a cell to show a message if two other cells contain some
specific text:
ex.
=IF(AND(A3="RRA05*";C3="KRF");"Tipo 4";"Tipo 1")

but I'm having trouble with the wildcard *

I have already tried ...A3="RRA05?????"... as this article code is always 10
digit long, but it also doesn't work

Should I format the cells in any specific way (as "text" or something else)
so it will work?

Thank you very much in advance, for all the help provided

Susana

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
Conditional formula containing text and wildcard PMo Excel Worksheet Functions 3 August 27th 08 04:14 PM
sumproduct with wildcard for text? nattie Excel Worksheet Functions 4 July 20th 08 12:18 PM
If text already contains a wildcard how do I countif, sumif etc.? Steven Excel Discussion (Misc queries) 4 December 24th 07 03:41 PM
Using IF to find text + wildcard? Outlook, eh? Excel Worksheet Functions 8 July 3rd 07 04:46 PM
COUNT or COUNTIF using wildcard text? WiFiMike2006 Excel Worksheet Functions 11 January 12th 07 11:12 PM


All times are GMT +1. The time now is 05:17 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"