Search : in
By :

Adding data from one column using another

Last answer on Aug 27, 2009 7:57:38 am BST saltod, on Aug 26, 2009 6:40:12 pm BST 
 Report this message to moderators

Hello,

I am having a real problem with an Excel formula.

I have a worksheet with variable rows and a number of columns. I need to add together the values of particular cells in one column, but only if corresponding cells in another column fit within a date range. I need to do this for all rows (although I won't know how many rows there are until I have imported the data), and for different date ranges. I need to add the values together on a seperate sheet.

The reason for this is that I want to sort activity put through a particular account into weeks. The data is input with a date, but i need all data up to and including the week end to add together to give me the week's total. I need to do this for each week of the year.

I have tried =IF(AND(criteria<range,range<=criteria),cell,), but realised that I would have to re-type this for each row. There could be as many as 400 rows, and never less than 110.

Any help would be appreciated.

Thank you

Dominic


Configuration: Windows Vista
Safari 530.5

Best answers for « Adding data from one column using another » in :
Adding data from one column using another Show Adding data from one column using another Issue Solution Note Issue I am having a real problem with an Excel formula. I have a worksheet with variable rows and a number of columns. I need to add together the values of particular...
Transforming columns into lines ShowTransforming columns into lines Example Limitations It is endemic for most Linux tools to work with lines, but not with columns (sed, awk, grep, etc..). However, it may happens,that you have a file where the data should be read in...
Excel tips : How to insert date in a cell ShowExcel tips : How to insert date in a cell Below are some tips on how to insert date and time in an excel cell for a specific purpose:- To insert current date, press CTRL ¯+ ;¯ in the chosen cell. To insert current time, press CTRL¯+...
Transferring data from one hard drive to another ShowTransferring data from one hard drive to another First of all you should use some tools.. transfering data from one hard drive to another is quite simple. Once you have connected the new hard drive to your pc, check your...
Download PDF Page Resizer ShowPDF Page Resizer does not allow PDF pages on a new type of paper. It is a very practical tool to maintain your PDF files. It allows to modify or to add data to information fields of one or several PDF files. The data can be printed to a standard...
Download Access Data Transfer Assistant 2000 ShowAccess Data Transfer Assistant 2000 is a program which allows you to transfer data between two Access databases. It lets you add data to the existing data of the destination database or to replace the data by those from the source database. It...
What is a computer bus? ShowIntroduction to the concept of a bus A bus, in computing, is a set of physical connections (cables, printed circuits, etc.) which can be shared by multiple hardware components in order to communicate with one another. The purpose of buses is to...
Worksheet - Cells ShowThe Concept of a Cell A "cell" is the intersection between a line (horizontal) and a column (vertical) on a worksheet. Thus, the name of the line combined with the name of the column gives the cell's coordinates (the term address is sometimes also...
Data transmission - Cabling ShowCabling types Several physical data-transmission media are available to connect together the various devices on a network. One possibility is to use cables. There are many types of cables, but the most common are: Coaxial cable Double twisted...

1

venkat1926, on Aug 27, 2009 1:05:55 am BST

Supose your data is A1 to B15 like this
1/1/2009 1
1/2/2009 2
1/3/2009 3
1/4/2009 4
1/5/2009 5
1/6/2009 6
1/7/2009 7 ****
1/8/2009 8
1/9/2009 9
1/10/2009 8
1/11/2009 7 ****
1/12/2009 6
1/13/2009 5
1/14/2009 4
1/15/2009 3

in any empty cell outside these two columns copy paste this formula

=SUMPRODUCT(($A$1:$A$200<"1/12/09"+0)*($A$1:$A$200>"1/6/09"+0)*($B$1:$B$200))

you will get 39
"***" in column c is only to show you the borders to check the sum

I have made provision for maximum of 200 rows. if necessary modify the formula.

Reply to venkat1926

2

 saltod, on Aug 27, 2009 7:57:38 am BST

That's great, I've tried it and it works no problem. You have saved me hours of inputting, thank you.

Reply to saltod