Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Perform SUM based off COUNT

I have used the following to get a grand total count:
=IF(COUNTIF('Sheet 1'!E2:E1344,"=0")-COUNTIF('Sheet
1'!E2:E1344,"30"),SUM('Sheet 1'!K:K),"")

I would now like to get a total for everything in column E matching the
above condition. How do I code that into my formula?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Perform SUM based off COUNT

same principle

=SUMIF('Sheet 1'!E2:E1344,"=0")-SUMIF('Sheet 1'!E2:E1344,"30")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"theryno" wrote in message
...
I have used the following to get a grand total count:
=IF(COUNTIF('Sheet 1'!E2:E1344,"=0")-COUNTIF('Sheet
1'!E2:E1344,"30"),SUM('Sheet 1'!K:K),"")

I would now like to get a total for everything in column E matching the
above condition. How do I code that into my formula?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,311
Default Perform SUM based off COUNT

See if this is what you want:

=SUMPRODUCT(--('Sheet 1'!E2:E1344=0),--('Sheet 1'!E2:E1344<=30),('Sheet
1'!K2:K1344))

Note: I noticed you have a space between "Sheet" and "1". By default, I
don't think there is a space in the tab names.

HTH,
Paul

"theryno" wrote in message
...
I have used the following to get a grand total count:
=IF(COUNTIF('Sheet 1'!E2:E1344,"=0")-COUNTIF('Sheet
1'!E2:E1344,"30"),SUM('Sheet 1'!K:K),"")

I would now like to get a total for everything in column E matching the
above condition. How do I code that into my formula?



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
Perform a calculation based on a cell being selected fluffy Excel Worksheet Functions 2 December 24th 08 05:38 PM
How to perform lookups based on multiple criteria? Brandon[_3_] Excel Worksheet Functions 4 October 19th 08 06:44 PM
develop a macro to perform calculations and plot graphs based on . Vin Excel Programming 2 June 30th 05 04:21 PM
How do I perform a function based on certain criteria? SMKDonde Excel Programming 7 May 16th 05 06:12 PM
can you perform a character count per cell with numbers? Amy Excel Discussion (Misc queries) 1 February 17th 05 10:29 PM


All times are GMT +1. The time now is 01:04 AM.

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"