#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 921
Default Sumifs (I think)

I store data on one tab and write a report template on another. The report
template allows a selection of criteria, usually a date, and the appropriate
data is pulled from the data tab.

My data tab looks like this:

A B C D E F G
1 Code Title Dept Division Date 1 Date 2 Date 3 etc
2 001 CFO Acct Admin 1 1 1
3 002 Staff Acct Admin 4.5 4.7 4.4
4 003 Dir HR Admin 1 1 1
5 004 Clerk Purch Admin 3.1 3.1 3.0
etc wth 300 or so row and 26 or so columns.

The numbers below the dates are FTES (Full Time Equivalents a HR measure)

On my report tab, I have the depts listed in column a. I have a changable
date in B1 that is to correspond with one of the dates on the data tab.

I need a flexible formula to say 'add up all the FTEs for a certain Dept on
a certain date.'

1. sumif will allow me to pick a dept, but then I must hard code my column
to select from: sumif(Data!C:C,A2,E:E) for date one. [Data!C:C is my column
of depts on the data tab, A2 is my row dept name like "Acct". E:E would
return data for date 1]

2. sumif will allow me to pick a date-horizontal, but then I must hard code
my row to select from: sumif(Data!1:1,B1,3:3) for staff accountant. [Data!1:1
is my row of dates on the data tab, B1 is the user input date. 3:3 would
return data for Staff in Acct]

What I really wanted excel to do was sumifs(Data!C:C,"Admin",Data!1:1,'Date
1',E2:Z300) ie. sum up anything that intersected these two conditions, but
it doesn't like that. I understand that I could do a lot of hard coding, but
I want it as flexible as possible. I am creating it and then turning it over
to a data entry clerk to maintain.

With all that, my apologies for the length and thanks ahead of time!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sumifs (I think)

In report tab with cell a2 = department name

=SUMPRODUCT((Data!C2:C300=A2)*(Data!E2:Z300))

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


"Jeff" wrote:

I store data on one tab and write a report template on another. The report
template allows a selection of criteria, usually a date, and the appropriate
data is pulled from the data tab.

My data tab looks like this:

A B C D E F G
1 Code Title Dept Division Date 1 Date 2 Date 3 etc
2 001 CFO Acct Admin 1 1 1
3 002 Staff Acct Admin 4.5 4.7 4.4
4 003 Dir HR Admin 1 1 1
5 004 Clerk Purch Admin 3.1 3.1 3.0
etc wth 300 or so row and 26 or so columns.

The numbers below the dates are FTES (Full Time Equivalents a HR measure)

On my report tab, I have the depts listed in column a. I have a changable
date in B1 that is to correspond with one of the dates on the data tab.

I need a flexible formula to say 'add up all the FTEs for a certain Dept on
a certain date.'

1. sumif will allow me to pick a dept, but then I must hard code my column
to select from: sumif(Data!C:C,A2,E:E) for date one. [Data!C:C is my column
of depts on the data tab, A2 is my row dept name like "Acct". E:E would
return data for date 1]

2. sumif will allow me to pick a date-horizontal, but then I must hard code
my row to select from: sumif(Data!1:1,B1,3:3) for staff accountant. [Data!1:1
is my row of dates on the data tab, B1 is the user input date. 3:3 would
return data for Staff in Acct]

What I really wanted excel to do was sumifs(Data!C:C,"Admin",Data!1:1,'Date
1',E2:Z300) ie. sum up anything that intersected these two conditions, but
it doesn't like that. I understand that I could do a lot of hard coding, but
I want it as flexible as possible. I am creating it and then turning it over
to a data entry clerk to maintain.

With all that, my apologies for the length and thanks ahead of time!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 921
Default Sumifs (I think)

This returns the sum of all my dept FTEs for all of my dates (all my
columns). I need to have a selection criteria that picks only one column E
to Z.

"Jacob Skaria" wrote:

In report tab with cell a2 = department name

=SUMPRODUCT((Data!C2:C300=A2)*(Data!E2:Z300))

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


"Jeff" wrote:

I store data on one tab and write a report template on another. The report
template allows a selection of criteria, usually a date, and the appropriate
data is pulled from the data tab.

My data tab looks like this:

A B C D E F G
1 Code Title Dept Division Date 1 Date 2 Date 3 etc
2 001 CFO Acct Admin 1 1 1
3 002 Staff Acct Admin 4.5 4.7 4.4
4 003 Dir HR Admin 1 1 1
5 004 Clerk Purch Admin 3.1 3.1 3.0
etc wth 300 or so row and 26 or so columns.

The numbers below the dates are FTES (Full Time Equivalents a HR measure)

On my report tab, I have the depts listed in column a. I have a changable
date in B1 that is to correspond with one of the dates on the data tab.

I need a flexible formula to say 'add up all the FTEs for a certain Dept on
a certain date.'

1. sumif will allow me to pick a dept, but then I must hard code my column
to select from: sumif(Data!C:C,A2,E:E) for date one. [Data!C:C is my column
of depts on the data tab, A2 is my row dept name like "Acct". E:E would
return data for date 1]

2. sumif will allow me to pick a date-horizontal, but then I must hard code
my row to select from: sumif(Data!1:1,B1,3:3) for staff accountant. [Data!1:1
is my row of dates on the data tab, B1 is the user input date. 3:3 would
return data for Staff in Acct]

What I really wanted excel to do was sumifs(Data!C:C,"Admin",Data!1:1,'Date
1',E2:Z300) ie. sum up anything that intersected these two conditions, but
it doesn't like that. I understand that I could do a lot of hard coding, but
I want it as flexible as possible. I am creating it and then turning it over
to a data entry clerk to maintain.

With all that, my apologies for the length and thanks ahead of time!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sumifs (I think)

With Dept in A2 and Date in B2 try

=SUMPRODUCT((Data!C2:C300=A2)*(Data!E1:Z1=B2)*(Dat a!E2:Z300))

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


"Jeff" wrote:

This returns the sum of all my dept FTEs for all of my dates (all my
columns). I need to have a selection criteria that picks only one column E
to Z.

"Jacob Skaria" wrote:

In report tab with cell a2 = department name

=SUMPRODUCT((Data!C2:C300=A2)*(Data!E2:Z300))

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


"Jeff" wrote:

I store data on one tab and write a report template on another. The report
template allows a selection of criteria, usually a date, and the appropriate
data is pulled from the data tab.

My data tab looks like this:

A B C D E F G
1 Code Title Dept Division Date 1 Date 2 Date 3 etc
2 001 CFO Acct Admin 1 1 1
3 002 Staff Acct Admin 4.5 4.7 4.4
4 003 Dir HR Admin 1 1 1
5 004 Clerk Purch Admin 3.1 3.1 3.0
etc wth 300 or so row and 26 or so columns.

The numbers below the dates are FTES (Full Time Equivalents a HR measure)

On my report tab, I have the depts listed in column a. I have a changable
date in B1 that is to correspond with one of the dates on the data tab.

I need a flexible formula to say 'add up all the FTEs for a certain Dept on
a certain date.'

1. sumif will allow me to pick a dept, but then I must hard code my column
to select from: sumif(Data!C:C,A2,E:E) for date one. [Data!C:C is my column
of depts on the data tab, A2 is my row dept name like "Acct". E:E would
return data for date 1]

2. sumif will allow me to pick a date-horizontal, but then I must hard code
my row to select from: sumif(Data!1:1,B1,3:3) for staff accountant. [Data!1:1
is my row of dates on the data tab, B1 is the user input date. 3:3 would
return data for Staff in Acct]

What I really wanted excel to do was sumifs(Data!C:C,"Admin",Data!1:1,'Date
1',E2:Z300) ie. sum up anything that intersected these two conditions, but
it doesn't like that. I understand that I could do a lot of hard coding, but
I want it as flexible as possible. I am creating it and then turning it over
to a data entry clerk to maintain.

With all that, my apologies for the length and thanks ahead of time!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 921
Default Sumifs (I think)

I am getting reasonable results. I have to digest this sumproduct formula
(acts more like a sumifs to me). Thanks for the great help!!!!

"Jacob Skaria" wrote:

With Dept in A2 and Date in B2 try

=SUMPRODUCT((Data!C2:C300=A2)*(Data!E1:Z1=B2)*(Dat a!E2:Z300))

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


"Jeff" wrote:

This returns the sum of all my dept FTEs for all of my dates (all my
columns). I need to have a selection criteria that picks only one column E
to Z.

"Jacob Skaria" wrote:

In report tab with cell a2 = department name

=SUMPRODUCT((Data!C2:C300=A2)*(Data!E2:Z300))

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


"Jeff" wrote:

I store data on one tab and write a report template on another. The report
template allows a selection of criteria, usually a date, and the appropriate
data is pulled from the data tab.

My data tab looks like this:

A B C D E F G
1 Code Title Dept Division Date 1 Date 2 Date 3 etc
2 001 CFO Acct Admin 1 1 1
3 002 Staff Acct Admin 4.5 4.7 4.4
4 003 Dir HR Admin 1 1 1
5 004 Clerk Purch Admin 3.1 3.1 3.0
etc wth 300 or so row and 26 or so columns.

The numbers below the dates are FTES (Full Time Equivalents a HR measure)

On my report tab, I have the depts listed in column a. I have a changable
date in B1 that is to correspond with one of the dates on the data tab.

I need a flexible formula to say 'add up all the FTEs for a certain Dept on
a certain date.'

1. sumif will allow me to pick a dept, but then I must hard code my column
to select from: sumif(Data!C:C,A2,E:E) for date one. [Data!C:C is my column
of depts on the data tab, A2 is my row dept name like "Acct". E:E would
return data for date 1]

2. sumif will allow me to pick a date-horizontal, but then I must hard code
my row to select from: sumif(Data!1:1,B1,3:3) for staff accountant. [Data!1:1
is my row of dates on the data tab, B1 is the user input date. 3:3 would
return data for Staff in Acct]

What I really wanted excel to do was sumifs(Data!C:C,"Admin",Data!1:1,'Date
1',E2:Z300) ie. sum up anything that intersected these two conditions, but
it doesn't like that. I understand that I could do a lot of hard coding, but
I want it as flexible as possible. I am creating it and then turning it over
to a data entry clerk to maintain.

With all that, my apologies for the length and thanks ahead of time!



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 921
Default Sumifs (I think)

Fasicnatingly brillant. It didn't strike me at first, but the logical tests
of equal to produces a 1 when true and a 0 when false. Hence anything that
meets your criteria is times 1 and times zero if false.

Thanks for the trick!!!

"Jacob Skaria" wrote:

With Dept in A2 and Date in B2 try

=SUMPRODUCT((Data!C2:C300=A2)*(Data!E1:Z1=B2)*(Dat a!E2:Z300))

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


"Jeff" wrote:

This returns the sum of all my dept FTEs for all of my dates (all my
columns). I need to have a selection criteria that picks only one column E
to Z.

"Jacob Skaria" wrote:

In report tab with cell a2 = department name

=SUMPRODUCT((Data!C2:C300=A2)*(Data!E2:Z300))

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


"Jeff" wrote:

I store data on one tab and write a report template on another. The report
template allows a selection of criteria, usually a date, and the appropriate
data is pulled from the data tab.

My data tab looks like this:

A B C D E F G
1 Code Title Dept Division Date 1 Date 2 Date 3 etc
2 001 CFO Acct Admin 1 1 1
3 002 Staff Acct Admin 4.5 4.7 4.4
4 003 Dir HR Admin 1 1 1
5 004 Clerk Purch Admin 3.1 3.1 3.0
etc wth 300 or so row and 26 or so columns.

The numbers below the dates are FTES (Full Time Equivalents a HR measure)

On my report tab, I have the depts listed in column a. I have a changable
date in B1 that is to correspond with one of the dates on the data tab.

I need a flexible formula to say 'add up all the FTEs for a certain Dept on
a certain date.'

1. sumif will allow me to pick a dept, but then I must hard code my column
to select from: sumif(Data!C:C,A2,E:E) for date one. [Data!C:C is my column
of depts on the data tab, A2 is my row dept name like "Acct". E:E would
return data for date 1]

2. sumif will allow me to pick a date-horizontal, but then I must hard code
my row to select from: sumif(Data!1:1,B1,3:3) for staff accountant. [Data!1:1
is my row of dates on the data tab, B1 is the user input date. 3:3 would
return data for Staff in Acct]

What I really wanted excel to do was sumifs(Data!C:C,"Admin",Data!1:1,'Date
1',E2:Z300) ie. sum up anything that intersected these two conditions, but
it doesn't like that. I understand that I could do a lot of hard coding, but
I want it as flexible as possible. I am creating it and then turning it over
to a data entry clerk to maintain.

With all that, my apologies for the length and thanks ahead of time!

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
Using Sumifs tomferrin Excel Worksheet Functions 3 April 7th 09 06:40 PM
Sumifs & Not Like Cow Girl Excel Discussion (Misc queries) 6 March 13th 09 08:34 PM
Sumifs David Excel Discussion (Misc queries) 9 January 27th 09 05:20 AM
SUMIFS and OR mohavv Excel Discussion (Misc queries) 4 January 30th 08 04:02 PM
SUMIFS and OR M.S. Westerbeek Excel Worksheet Functions 6 August 23rd 07 07:24 PM


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