Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 389
Default If text already contains a wildcard how do I countif, sumif etc.?

From a database one of the dataset contains a vehicle type for example
pushbike, small van etc. however if the booking is made online it precede the
vehicle type with an * meaning if I countif, sumif pushbike it counts both
types of records.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default If text already contains a wildcard how do I countif, sumif etc.?

My testing did not produce that result. Post your data and formula

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Steven" wrote in message
...
From a database one of the dataset contains a vehicle type for example
pushbike, small van etc. however if the booking is made online it precede
the
vehicle type with an * meaning if I countif, sumif pushbike it counts both
types of records.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 389
Default If text already contains a wildcard how do I countif, sumif et

Don

Thanks for the quick response, see below formula should return 10 as the
count but returns 20.

Steven

1070175 *Bike
1070177 *Bike
1070179 *Bike
1070182 *Bike
1070183 *Bike
1070188 *Bike
1070191 *Bike
1070192 *Bike
1070193 *Bike
1070194 *Bike
1070195 Bike
1070196 Bike
1070197 Bike
1070198 Bike
1070199 Bike
1070201 Bike
1070202 Bike
1070203 Bike
1070204 Bike
1070205 Bike

=COUNTIF(B2:B21,"*Bike")

"Don Guillett" wrote:

My testing did not produce that result. Post your data and formula

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Steven" wrote in message
...
From a database one of the dataset contains a vehicle type for example
pushbike, small van etc. however if the booking is made online it precede
the
vehicle type with an * meaning if I countif, sumif pushbike it counts both
types of records.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default If text already contains a wildcard how do I countif, sumif et

Another one:

=COUNTIF(B2:B21,"~*Bike")

* is the wildcard for any set of characters
? is the wildcard for a single character
~ is the character that tells excel that you want to treat the next character as
a real asterisk, a real question mark or even a real tilde:

=COUNTIF(B2:B21,"~*Bike")
=COUNTIF(B2:B21,"~?Bike")
=COUNTIF(B2:B21,"~~Bike")



Steven wrote:

Don

Thanks for the quick response, see below formula should return 10 as the
count but returns 20.

Steven

1070175 *Bike
1070177 *Bike
1070179 *Bike
1070182 *Bike
1070183 *Bike
1070188 *Bike
1070191 *Bike
1070192 *Bike
1070193 *Bike
1070194 *Bike
1070195 Bike
1070196 Bike
1070197 Bike
1070198 Bike
1070199 Bike
1070201 Bike
1070202 Bike
1070203 Bike
1070204 Bike
1070205 Bike

=COUNTIF(B2:B21,"*Bike")

"Don Guillett" wrote:

My testing did not produce that result. Post your data and formula

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Steven" wrote in message
...
From a database one of the dataset contains a vehicle type for example
pushbike, small van etc. however if the booking is made online it precede
the
vehicle type with an * meaning if I countif, sumif pushbike it counts both
types of records.




--

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
Wildcard with sumif fractallinda Excel Discussion (Misc queries) 13 March 13th 09 05:02 PM
COUNT or COUNTIF using wildcard text? WiFiMike2006 Excel Worksheet Functions 11 January 12th 07 11:12 PM
Need help on countif and sumif function with dates and wildcard characters chinita_jill Excel Discussion (Misc queries) 5 July 19th 06 05:22 PM
Sumif using wildcard claireanddoug Excel Worksheet Functions 1 September 22nd 05 10:17 PM
SUMIF, wildcard and cell ref Dave Excel Worksheet Functions 2 January 31st 05 08:13 PM


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