Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Text Data Series

I am by no means an Excel expert so I may be missing something easy
here but I'm trying to write a sumproduct statement that will check
multiple conditions before counting an entry in my master spreadsheet.

I have a column that contains identifiers that I'm defining, I have a
column that contains origin states, and I have a column that defines
destination states. The problem I'm having is I need to group the
states into zones and I'm trying to define the zones as a data series
and labeling them.

This is my formula:
=SUMPRODUCT(--([JanMarRaw.xls]Sheet1!$H$2:$H$2330="XXXX"),(--([JanMarRaw.xls]Sheet1!$D$2:$D$2330=west)))

where H2:H2330 contains my identifiers and D2:D2330 contains the
origin states.
In another sheet, I have two cells (one containing "WA" and the other
containing "CA") and those two are defined as west (for the sake of
this post, WA and CA are the only states in my west region). So, I'm
trying to get a count of everything with XXX identifier and EITHER CA
or WA as it's origin state code. When I enter in this formula, I get
a #value! error but if I change the formula to $D$2:D$2330="CA" (or
"WA"), I will get an accurate count. I know it's freaking when it's
trying to match CA to the series of text entries (CA and WA) but I
don't know how to tell it to count if if it's included in that text
series.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Text Data Series

Hi
some ways:
1. hardocded values:
=SUMPRODUCT(--([JanMarRaw.xls]Sheet1!$H$2:$H$2330="XXXX"),--(([JanMarRa
w.xls]Sheet1!$D$2:$D$2330="WA")+([JanMarRaw.xls]Sheet1!$D$2:$D$2330="CA
")0))

2. Assumption: your cells A1:A2 contain these values:
=SUMPRODUCT(--([JanMarRaw.xls]Sheet1!$H$2:$H$2330="XXXX"),--(ISNUMBER(M
ATCH([JanMarRaw.xls]Sheet1!$D$2:$D$2330,$A$1:$A$2,0))))


--
Regards
Frank Kabel
Frankfurt, Germany


Hurleymc wrote:
I am by no means an Excel expert so I may be missing something easy
here but I'm trying to write a sumproduct statement that will check
multiple conditions before counting an entry in my master

spreadsheet.

I have a column that contains identifiers that I'm defining, I have a
column that contains origin states, and I have a column that defines
destination states. The problem I'm having is I need to group the
states into zones and I'm trying to define the zones as a data series
and labeling them.

This is my formula:

=SUMPRODUCT(--([JanMarRaw.xls]Sheet1!$H$2:$H$2330="XXXX"),(--([JanMarRa
w.xls]Sheet1!$D$2:$D$2330=west)))

where H2:H2330 contains my identifiers and D2:D2330 contains the
origin states.
In another sheet, I have two cells (one containing "WA" and the other
containing "CA") and those two are defined as west (for the sake of
this post, WA and CA are the only states in my west region). So, I'm
trying to get a count of everything with XXX identifier and EITHER CA
or WA as it's origin state code. When I enter in this formula, I get
a #value! error but if I change the formula to $D$2:D$2330="CA" (or
"WA"), I will get an accurate count. I know it's freaking when it's
trying to match CA to the series of text entries (CA and WA) but I
don't know how to tell it to count if if it's included in that text
series.


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
Time Series and Creating data points within a series Cristal Excel Discussion (Misc queries) 2 November 30th 09 08:07 PM
chart with two data series and two colors for each data series bikash Charts and Charting in Excel 0 January 17th 08 02:04 AM
Chart data won't accept text functions in series name [email protected] Excel Worksheet Functions 3 October 9th 06 07:10 PM
2nd Axes - primary series data of only 1 series disappears! cheriw Charts and Charting in Excel 1 February 23rd 06 12:32 AM
chart data series -- plot a table as a single series hjc Charts and Charting in Excel 7 September 20th 05 05:52 PM


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