Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default I am looking for a phrase

I am using a simple command countif and sumif but my criteria is differant
each time although I want to use that line to count or sum the awnser like
-100 PETRO S#BP SUNNYROCK 8790520001361546
-380.04 PETRO S*CARNIVAL CITY S/ST8790520001361546
-129.67 PETRO S*KRAFT RD BP 8790520001389844

I want to use the phrase perto "and not the whole line as they differ each
entry"to calculate the values in another cell

Please help I know there must be a special caracter to look only for the
phrase perto in a sentance.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default I am looking for a phrase

Try

=COUNTIF(A1:A100,"*PETRO*")

Mike

"Gideon" wrote:

I am using a simple command countif and sumif but my criteria is differant
each time although I want to use that line to count or sum the awnser like
-100 PETRO S#BP SUNNYROCK 8790520001361546
-380.04 PETRO S*CARNIVAL CITY S/ST8790520001361546
-129.67 PETRO S*KRAFT RD BP 8790520001389844

I want to use the phrase perto "and not the whole line as they differ each
entry"to calculate the values in another cell

Please help I know there must be a special caracter to look only for the
phrase perto in a sentance.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default I am looking for a phrase

If you mean the sum of all entries which has got a PETRO. Assuming your data
in ColA and B try the below

=SUMIF(B1:B100,"*petro*",A1:A100)

If this post helps click Yes
---------------
Jacob Skaria


"Gideon" wrote:

I am using a simple command countif and sumif but my criteria is differant
each time although I want to use that line to count or sum the awnser like
-100 PETRO S#BP SUNNYROCK 8790520001361546
-380.04 PETRO S*CARNIVAL CITY S/ST8790520001361546
-129.67 PETRO S*KRAFT RD BP 8790520001389844

I want to use the phrase perto "and not the whole line as they differ each
entry"to calculate the values in another cell

Please help I know there must be a special caracter to look only for the
phrase perto in a sentance.

Thanks

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 how many times a phrase comes up? Deplywrker Excel Worksheet Functions 3 November 13th 08 12:52 AM
Convert a number to phrase Shahrun A Rahman Excel Discussion (Misc queries) 2 May 7th 07 12:46 AM
Delete a row with a certain phrase? dziw[_4_] Excel Programming 3 July 13th 06 11:42 PM
Delete a row with a certain phrase? dziw Excel Discussion (Misc queries) 1 July 13th 06 11:06 PM


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