Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
|| cypher ||
 
Posts: n/a
Default SUMIF/COUNTIF with an additional criteria

I have a three column sheet. named MAIN
COLUMNS:
a.) AGENT (Validated with a pulldown list)
b.) STATUS (Validated with a pulldown list)
c.) PRICE

I have another sheet named STATS
Cell STATS!B1 contains the agents name (Validated with a pulldown list)

Cell STATS!B2 I want to count how many active listings the agent in
STATS!B1 has
=COUNTIF(MAIN!A2:A61,STATS!B1)

Cell STATS!B3 I want to sum the entire value of all the active listings
agent in STATS!B1 has.
=SUMIF(MAIN!A2:A61,STATS!B1,MAIN!C2:C61)

AVAILABLE STATUS VALUES:
ACTV
DFT
CNT CS
CNT CC
CNT PS
CNT SI
PEND
WDRWN
SOLD
LEASED
EXP



Based on those values above, what I am hoping to create is a SUMIF and
COUNTIF tally based on the agents name where the STATUS equals ACTV, DFT,
CNT CS, CNT CC, CNT PS, CNT SI, or PEND.

I want to prevent values from being SUMMED and COUNTED if the status equals
WDRWN, SOLD, LEASED or EXP

I am not sure how to incorporate this additional requirement into the
corresponding formulae. Any assistance would be greatly appreciated.

-cypher






  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
use SUMPRODUCT. See:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Regards
Frank Kabel
Frankfurt, Germany


|| cypher || wrote:
I have a three column sheet. named MAIN
COLUMNS:
a.) AGENT (Validated with a pulldown list)
b.) STATUS (Validated with a pulldown list)
c.) PRICE

I have another sheet named STATS
Cell STATS!B1 contains the agents name (Validated with a pulldown
list)

Cell STATS!B2 I want to count how many active listings the agent in
STATS!B1 has
=COUNTIF(MAIN!A2:A61,STATS!B1)

Cell STATS!B3 I want to sum the entire value of all the active
listings agent in STATS!B1 has.
=SUMIF(MAIN!A2:A61,STATS!B1,MAIN!C2:C61)

AVAILABLE STATUS VALUES:
ACTV
DFT
CNT CS
CNT CC
CNT PS
CNT SI
PEND
WDRWN
SOLD
LEASED
EXP



Based on those values above, what I am hoping to create is a SUMIF

and
COUNTIF tally based on the agents name where the STATUS equals ACTV,
DFT, CNT CS, CNT CC, CNT PS, CNT SI, or PEND.

I want to prevent values from being SUMMED and COUNTED if the status
equals WDRWN, SOLD, LEASED or EXP

I am not sure how to incorporate this additional requirement into the
corresponding formulae. Any assistance would be greatly appreciated.

-cypher


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 Selection Criteria Graham Haughs Excel Discussion (Misc queries) 3 January 14th 05 08:19 AM
How do I set up an additional print title in Excel? Sally New Users to Excel 1 January 10th 05 03:25 PM
SUMIF Criteria Brent Martin Excel Discussion (Misc queries) 6 January 7th 05 05:17 AM
SUMIF with only one criteria cell within range Stan Excel Discussion (Misc queries) 5 December 16th 04 10:12 PM
Can I use a cell reference in the criteria for the sumif function. Number Cruncher Excel Worksheet Functions 2 November 4th 04 07:52 PM


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