Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DG
 
Posts: n/a
Default if then statement

if a:a contains "*Total Tele*", then add C:C if C:C is <24
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(COUNTIF(A:A,"*Total Tele*")0,SUMIF(C:C,"<24"),0)


--
HTH

Bob Phillips

"DG" wrote in message
...
if a:a contains "*Total Tele*", then add C:C if C:C is <24



  #3   Report Post  
DG
 
Posts: n/a
Default

Bob that did work and was what i asked for, Thank you.

How would i count only the row that contained the Total Tele based on that
formula.

"Bob Phillips" wrote:

=IF(COUNTIF(A:A,"*Total Tele*")0,SUMIF(C:C,"<24"),0)


--
HTH

Bob Phillips

"DG" wrote in message
...
if a:a contains "*Total Tele*", then add C:C if C:C is <24




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

What happens if more than one?

--
HTH

Bob Phillips

"DG" wrote in message
...
Bob that did work and was what i asked for, Thank you.

How would i count only the row that contained the Total Tele based on that
formula.

"Bob Phillips" wrote:

=IF(COUNTIF(A:A,"*Total Tele*")0,SUMIF(C:C,"<24"),0)


--
HTH

Bob Phillips

"DG" wrote in message
...
if a:a contains "*Total Tele*", then add C:C if C:C is <24






  #5   Report Post  
DG
 
Posts: n/a
Default

The answer to your response is that it counts all the cells that are <24 in
column c (third coloumn)


I have this section repeated for 100 locations in the same sheet. What i
need to to count the cell in the third column that is in the row that
contains Total telephone port when it is less than 24. This particular
location has 300.

Total Telephone Ports 288 300
High End Telephones 75 75
Standard Telephones 143 155
Low End Telephones 25 25
Receptionist Telephones 20 20
Fax Ports 25 30




  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default

Okay

=SUMPRODUCT(--(ISNUMBER(FIND("Total Tele",A1:A100))),--(C1:C100<24),C1:C100)

but this will return 0 not 300 using the data you show because the C value
is 24.

--
HTH

Bob Phillips

"DG" wrote in message
...
The answer to your response is that it counts all the cells that are <24

in
column c (third coloumn)


I have this section repeated for 100 locations in the same sheet. What i
need to to count the cell in the third column that is in the row that
contains Total telephone port when it is less than 24. This particular
location has 300.

Total Telephone Ports 288 300
High End Telephones 75 75
Standard Telephones 143 155
Low End Telephones 25 25
Receptionist Telephones 20 20
Fax Ports 25 30




  #7   Report Post  
Ashish Mathur
 
Posts: n/a
Default

Dear DG,

Try this array formula (Ctrl+Shift+Enter)

=sum(if((range="*Total Tele*")*(range<24),sumrange))

Regards,

Ashish

"DG" wrote:

if a:a contains "*Total Tele*", then add C:C if C:C is <24

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
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
IF Statement nightmare eugenevr Excel Discussion (Misc queries) 6 May 18th 05 01:09 PM
What statement to use? Paul Excel Worksheet Functions 6 February 13th 05 05:23 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


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