Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RD
 
Posts: n/a
Default Wildcards in formulas?

Is it possible to use wildcards in formulas?

I want to look at a cell and if it has the characters "-051" then I would
have the formula carry on to do something. the characters in the cell are
either ???????-051or #######-### the last three numbers being 00#

Thanks
rd


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Wildcards in formulas?

=if(right(a1,4)="-051","something","something else")

This assumes that the hyphen is really in the cell--not just a number format
that displays it.

RD wrote:

Is it possible to use wildcards in formulas?

I want to look at a cell and if it has the characters "-051" then I would
have the formula carry on to do something. the characters in the cell are
either ???????-051or #######-### the last three numbers being 00#

Thanks
rd


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RD
 
Posts: n/a
Default Wildcards in formulas?

Thanks Dave,

Gotta love newsgroups!

rd

"Dave Peterson" wrote in message
...
=if(right(a1,4)="-051","something","something else")

This assumes that the hyphen is really in the cell--not just a number
format
that displays it.

RD wrote:

Is it possible to use wildcards in formulas?

I want to look at a cell and if it has the characters "-051" then I would
have the formula carry on to do something. the characters in the cell are
either ???????-051or #######-### the last three numbers being 00#

Thanks
rd


--

Dave Peterson



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
Formulas not recognizing new data malakingaso Excel Discussion (Misc queries) 1 February 8th 06 07:27 PM
Countif formulas change after doing a sort Bob Smith Excel Worksheet Functions 3 January 3rd 06 11:17 PM
wildcards in formulas GoBobbyGo Excel Discussion (Misc queries) 1 October 28th 05 05:33 PM
Wildcards in Formulas GOL Excel Discussion (Misc queries) 2 September 1st 05 09:40 PM
Wildcards in formulas? Slagmendoza Excel Worksheet Functions 4 May 26th 05 02:22 PM


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