Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Summing based on criteria


I am currently trying to reconfigure a dataset into something more
managable for our regression needs. The issue I am having is trying to
automate as much of the data transfer as possible. The data set is set
up as follows (for example):

Yr Tag Value
0 2 #
1 2 #
2 3 #
3 3 #

0 1 #
1 1 #
2 1 #
3 1 #

etc. where tag is a special code we have developed based on the number
1, 2, 3, and 4

What I would like to do is develop a summing formula so in year 0 I can
sum all the values if the tag is equal to 1 and then I would do that for
the numbers 1 through 4 in my "compilation" worksheet.

Thanks for any help you can give,

Josh


--
jspizman
------------------------------------------------------------------------
jspizman's Profile: http://www.excelforum.com/member.php...o&userid=30694
View this thread: http://www.excelforum.com/showthread...hreadid=563340

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default Summing based on criteria

=sumproduct(--(A1:A1000=year),--(B1:B1000=tag),C1:C1000)

change the years and tags as appropriate



"jspizman" wrote:


I am currently trying to reconfigure a dataset into something more
managable for our regression needs. The issue I am having is trying to
automate as much of the data transfer as possible. The data set is set
up as follows (for example):

Yr Tag Value
0 2 #
1 2 #
2 3 #
3 3 #

0 1 #
1 1 #
2 1 #
3 1 #

etc. where tag is a special code we have developed based on the number
1, 2, 3, and 4

What I would like to do is develop a summing formula so in year 0 I can
sum all the values if the tag is equal to 1 and then I would do that for
the numbers 1 through 4 in my "compilation" worksheet.

Thanks for any help you can give,

Josh


--
jspizman
------------------------------------------------------------------------
jspizman's Profile: http://www.excelforum.com/member.php...o&userid=30694
View this thread: http://www.excelforum.com/showthread...hreadid=563340


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
return multiple rows of data based on criteria steve_sr2 Excel Worksheet Functions 8 May 20th 23 07:47 PM
caluculate an average based on 2 criteria [email protected] Excel Discussion (Misc queries) 3 November 3rd 05 03:34 AM
Returning Results Based on Two Criteria [email protected] Excel Worksheet Functions 7 October 23rd 05 02:53 PM
returning a value based on mulitple criteria Brad Excel Worksheet Functions 6 December 31st 04 08:14 AM
Formula to determine a future date based on criteria David Excel Worksheet Functions 2 December 15th 04 07:51 PM


All times are GMT +1. The time now is 03:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"