Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
GOL
 
Posts: n/a
Default Wildcards in Formulas

Im attempting to write a formula that looks like this:

If(A2="***/5",B2*3,0)

All my A column fields end in either /5 or /1, but I only want the /5
affected. Any help please.
  #2   Report Post  
KL
 
Posts: n/a
Default

Hi,

Try this:

=IF(RIGHT(A2,2)="/5",B2*3,0)

or

=IF(COUNTIF(A2,"*/5"),B2*3,0)


Regards,
KL

"GOL" wrote in message
...
Im attempting to write a formula that looks like this:

If(A2="***/5",B2*3,0)

All my A column fields end in either /5 or /1, but I only want the /5
affected. Any help please.



  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

One way:

=if(countif(a2,"*/5"),b2*3,0)

GOL wrote:

Im attempting to write a formula that looks like this:

If(A2="***/5",B2*3,0)

All my A column fields end in either /5 or /1, but I only want the /5
affected. Any help please.


--

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
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
locking formulas?? Rob Excel Discussion (Misc queries) 1 July 27th 05 09:27 AM
Wildcards in formulas? Slagmendoza Excel Worksheet Functions 4 May 26th 05 02:22 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


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