Multiple Sumif Array
Feb 7, 2008
I am preparing an analysis of my company's expenses for the last two years by account. One on excel sheet I have the raw data,
bank account, payee, payment date, clear date, amount, payment type
(This is from all accounts for the whole 2 year period.)
In the second sheet, I have a summary schedule setup. The summary is setup like this:
Account #
Row 1: Begin Date
Row 2: End Date
Payment Type 1 AAAAAAA
Payment Type 2 BBBBBBBB
I would like to come up with a formula that will populate AAAAA & BBBBB for a given account during a given time period. For example, I would like it to give me the total of Type 1 payments from account 12 during the period January 2, 2005 through January 27, 2006.
Right now it is only giving me the info for 1 payment type and 1 account. Here is what I have now {=SUM(IF(Detail!$G$10:$G$3942>=R$5,IF(Detail!$G$10:$G$3942
View 10 Replies
ADVERTISEMENT
Jan 14, 2009
I would like to have a formula in one cell that finds records on another sheet that meet certain criteria, and produces a sum of the total quantities associated with that record. The attached workbook has more details as to what I am trying to do.
View 2 Replies
View Related
Jan 3, 2012
I am trying to use the SUM IF Array formula to sum a group of numbers that fall under a heading of reference numbers over several sheets of data. For example purposes lets say my spreadsheet looks something like the below.
A
B
C
D
E
1
2600000248391
2600000393805
[code]......
The first two digits of the heading numbers are the criteria I am trying to use to separate and sum the data. For example I need to sum the value of the data below headings that falls between 1400000000000 and 1499999999999.
For the example above I used the below formula for the current Sheet and it works fine.
{=SUM(IF(A1:E1>="1400000000000",IF(A1:E1="1400000000000",IF(Sheet1!A1:E1,Sheet2!A1:E1
View 5 Replies
View Related
Sep 17, 2009
I need to perform 2 SUMIF's on 2 columns of data to return a result and I'm not quite sure the best way of doing this. I'll give an example below.
I have 2 columns of data, both numeric and the SUMIF needs to say if H1:H100="10" and also if J1:J100="907". I can perform one or the other but not both.
View 6 Replies
View Related
Nov 5, 2008
I've been manually writing IF statements out for ranges of data that could easily be done with a little array work. So I set out to convert all my functions into something more readable and quicker to write. But I ran into a problem. I want to add the values of an array G45:Z45 if the corresponding values in G44:Z45 are less than or equal to P41. So I thought to use a SUMIF:
=SUMIF(G44:Z45,<=+P41,G45:Z45)
That didn't work, in fact, it didn't come error free until I did:
=SUMIF(G44:Z45,"<="+P41,G45:Z45)
But that doesn't add anything up either. From what I can see, the problem lies within the condition. If I simply put P41, it works. The moment I add <= I get a multitude of problems.
View 2 Replies
View Related
Sep 18, 2007
does the SUMIF worksheetfunction in VBA work on Arrays? I know it will work on ranges, and thats all fine, but I am convinced it should work on an array too... for example... Just assume two columns of numbers (A and B) with 13 rows -
Public Sub test()
Dim a As Range, b As Range
Dim x, y
x = ActiveSheet.Range("A1:A13").Value
y = ActiveSheet.Range("B1:B13").Value
Set a = ActiveSheet.Range("A1:A13")
Set b = ActiveSheet.Range("B1:B13")
MsgBox Application.WorksheetFunction.Sum(x) 'works
MsgBox Application.WorksheetFunction.Sum(y) 'works
MsgBox Application.WorksheetFunction.SumIf(x, "1", y) 'wont work - "Object Required"
MsgBox Application.WorksheetFunction.SumIf(a, "1", b)
End Sub
I also tried Transposing the x and y arrays, but the same result "Object Required".
View 4 Replies
View Related
Apr 7, 2014
In sheet1 I have name(column A) and value(column B)
In sheet2 I have name (column C) and key(column D)
In sheet 3 I have results
Example ( It is just a total nonsense example, the real data is net inflow of some funds that are unique)
Sheet1
House 1000
Car 1500
pet 2000
Sheet 2
house1
car1
pet2
So in the sheet 3 I want to put a formula that is capable to sum all values of the sheet2 if the name has a key of 1in the sheet2, the key columns has values of 1 or 2
I think in SQL will be something with join and group by with having clause.
The result will be 2500 in the sheet 3.
What I tried: My attempt is to do something like this code ( using array functions).
View 7 Replies
View Related
Jan 15, 2010
I've hit a major brick wall and hoping someone will be able to help! I've written an array formula to replace a pivot table (long story) anyway, they now want to be able to filter the data by date (between two dates) i'm using the current formula:
{=SUM(IF('SAP Data Current'!$A$2:$A$39802='Payment Block by Ac. Clerk Cal'!$B$84,IF('SAP Data Current'!$I$2:$I$39802='Payment Block by Ac. Clerk Cal'!$C101,IF('SAP Data Current'!$B$2:$B$39802='Payment Block by Ac. Clerk Cal'!S$2,'SAP Data Current'!$AA$2:$AA$39802,0),0),0))}
I know I need to put it at the beginning, but not sure how! I have the following formula for between dates:
=SUMIF(B2:B24,"<="&F7,C2:C24)+SUMIF(B2:B24,"<="&F8,C2:C24)
but then this isn't working right either!
View 13 Replies
View Related
Jul 19, 2013
I currently have a Row with this value
row1 lh lh lh
row2 8 12 8 5 2
First I will need to check if the column has an "lh" if true then sum row2, however i will need a second condition that will check that if >8 it will use the value 8 instead of 12.
However if value is<=8 get that value from the cell.
In this case the correct answer is
8 + 8 + 5 = 21
8 (because it is <=8 get the value from the cell) + 8 (because 12 is>8 use the value "8") + 5 (because <=8)
View 3 Replies
View Related
Jul 24, 2014
I have a download from an accounting general ledger which has the following:
Column A: Category Description
Column B: Country
Column C: Department
Row 1: Months
Note: Each row contains the last 12 months worth of costs
As the categories/criteria can appear multiple times, and there are thousands of lines, I have been using SUMIFS to calculate totals my required combinations (eg. Travel expense, Germany, Sales department)
Every month, the information refreshes to show the most recent 12 months worth of data. And this means I need to manually update my formulas to correct the month column headings, as everything moves by 1 month.
Would something like a SUMIF with a SUMPRODUCT work? Eg. if current month = July, then it would sum everything from the July column automatically?
View 4 Replies
View Related
Feb 10, 2014
I have a list of Items and the quantities of those items on one sheet. Each item has a section location number as well. (three Columns, Item, Quantity, and Section Location). the list can repeat the same item multiple times.
This is why I then have a summary sheet to uses a SUMIF formula to sum the quantities of a given item that are in a givin section. which my SUMIF Formula works great for. But my problem is some items have the word "LUMP" as its quantity and not a number. I want to add to my array formula so if the item does have a LUMP quantity and the lump quantity is in the section location to put LUMP on the summary sheet. here is my formula
=SUM(IF((ProjectInfo!$AE$2:$AE$307 =$B59)*(ProjectInfo!$AD$2:$AD$307= AA$10),ProjectInfo!$AF$2:$AF$307,""))
projectInfo is the sheet where the list is. Column AE is the Item column on the projectinfo sheet column B on the summary sheet would be the item that i want to sum the quantities for Column AD is the section location column on the projectinfo sheet the AA$10 is the row and column of the section location i want to limit the sum of the quantities to the formula is in cell AA59 So it will sum all the quantities in the list on the projectinfo sheet if the item and section location match whats specified on the summary sheet.
getting LUMP to display if its a lump quantity. The Lump can only show up if the item on the projectinfo sheet has LUMP for that Item AND in that section location.
EDIT: Column AF on the ProjectInfo Sheet is the quantity column
View 5 Replies
View Related
Sep 9, 2012
I am trying to populate many arrays with the same code using something like this. For this test, assume the following data in A1.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Code:
Sub populate()
Dim firstArr(5), secondArr(5), thirdArr(5), fourthArr(5), fifthArr(5) As Integer
Dim r, c, num As Integer
[Code]....
The above code does not work of course and falls over. I am unsure whether I should try and concatenate with something like this eg "" & arrName(i) = Cells (r,c) or go down a different route.
View 6 Replies
View Related
Jan 20, 2009
I'm trying to put together a spreadsheet that tracks disc capacity increases, affected by any incoming projects. I've managed to do so for one project, but would like to for up to 10. The way i've designed the solution (i'm sure there are far more elegant ways, but hey) is thus:
A forecast worksheet keeps track of a grand total, taking information from sheets P1 -> P10 (being projects 1 to 10). I am unable to figure a way to add up all the increases from all 10 project worksheets with one succinct formula. What I use so far is: ='P1'!C83+SUMIF('P1'!E82,"=2009 - Q1",'P1'!D82) ..................
View 5 Replies
View Related
Jun 14, 2009
I have an old version of Excel and want to use sumifs()
This means I want to add data based on 2 conditions. What should I do?
View 9 Replies
View Related
Aug 9, 2006
How does one add data to a field that has existing data? For example, say I have a list of different people names and want to say the word "visitor" at the end of each name how is that done for an entire list without have to do it one by one. Also how do I add a word to the beginning of a list of names as well?
View 2 Replies
View Related
Jan 4, 2007
I'm trying to get a sum only if 2 conditions are met.
Column A has dates (ex. 01/02/2007) in a random order. Column B has a location in a text format (ex. London). Column C has a series of values formatted as [h]:mm.
What I'm trying to do is get a sum of the values in column C where the corresponding values in columns A and B = the date and loction I specify. I've tried...
=SUM(IF(('Jan ''07'!A$2:A$750="1/2/2007")*('Jan ''07' E$2:E$750="London"),'Jan ''07'!J$2:J$750))
but it's returning zero values regardless of the criteria being met or not.
View 12 Replies
View Related
Jun 15, 2009
I am new to excel and functions I am trying to put together a spreadsheet of computer costs. Basically I am listing various mobos, cpus, psus, etc. I have a column that signifies which mobo/cpu/etc I want to include in the actual total cost of the computer. Currently the only way I can perform the summation is to create a long drawn out calculation, which is a pain if I need to add more rows to the spreadsheet. I want to try to do a summation.
So, the grid looks something like the following:......
View 5 Replies
View Related
Apr 21, 2006
I have the following formula that I am trying to use but the result is #VALUE:
=SUMIF(Sheet1:Sheet9!B1,"PMI",Sheet1:Sheet9!A3)
The formula should look in cell B1 of each sheet and if it is equal to "PMI"
sum of the value in cell A3 in each sheet.
View 14 Replies
View Related
May 31, 2006
My book is telling me that I can't use multiple conditions with a SUMIF
statement but other sources are telling me I can. Either way, it's not
working!
My situation:
Look at data in $V$2:$V$144 (range = "group"). If cells in "group" =
"Broth" then look at $Y$2:$Y$144 (range = "bldg"). If "bldg" = "1" then sum
corresponding cells in $R$2:$R$144 (range = "fcst").
This is one of my attempts - feeble...
=SUM(IF(group="Broths",IF(bldg="1",fcst,0)))
View 9 Replies
View Related
Nov 27, 2011
I want a sumif where:
=sumif(f2:f500,
if column f has a 7 in it and if column e is greater than 5
View 3 Replies
View Related
Jan 25, 2012
I am trying to use multiple "ifs" and then summing the cells that obey my conditions.
Let me give an example:
Column A - place
NY
Chicago
Los Angeles
San Francisco
Column B - object
gate
keyboard
pencilcase
cellphone
[code]....
I want the ifs and sumifs to:
Check if place = NY
Check if object = keyboard
Check if condition = failure
and sum the prices when all of the above are true.How do I do it??
View 4 Replies
View Related
May 21, 2012
How can I sumif over multiple tabs?? Without using sumif(a:a,sheet1!a1,c:c)+sumif(a:a,sheet2!a1,c:c)
Like sumif(sheet1:sheet2!a:a,a1,sheet1:sheet2!c:c) I do not want to use a macro. I have about 80 sheets.
Sheet1
Apples 93
Pears 49
Oranges 20
Bananas 35
Sheet2
Apples 100
Pears 13
Oranges 2
Bananas 350
View 8 Replies
View Related
Sep 28, 2012
I have got a workbook with multiple sheets, each sheet is in the same format but with different products across the top. The below formula sums the relevant columns by looking for the column with the relevant product code then sum accordingly. How do I amend the formula so that it does the sum for multiple sheets. I could just copy the formula for each sheet but their must be a better way to do this.
Code:
=SUMIF('FM'!$A:$A,$A2,INDEX('FM'!$A$1:$J$34,0,MATCH(Summary!B$1,'FM'!$1:$1,0)))
View 1 Replies
View Related
Aug 29, 2013
How to use formula approach to get the total figure for A & B
A
1
2
3
B
4
5
6
[Code]....
View 9 Replies
View Related
Apr 23, 2014
I have to SUM vendor totals in my spreadsheet and SUMIF worked perfectly, but only for one column of expenses. I need to sum over fifteen columns but searching told me that SUMIF / SUMIFS will not work. Is there another way?
View 9 Replies
View Related
Jun 30, 2014
I'm trying to sumif across multiple columns, only if there is NO data in the first cell of the row. Column A is not in use - B contains some blank cells and some with data. In columns C:AM I want to sum all data in rows where the cells in Column B are blank.
Code:
=SUM(SUMIF($B$2:$B$191,"",C2:C191),(SUMIF($B$2:$B$191,"",D2:D191)),(SUMIF($B$2:$B$191,"",E2:E191)),
(SUMIF($B$2:$B$191,"",F2:F191)),(SUMIF($B$2:$B$191,"",G2:G191)),(SUMIF($B$2:$B$191,"",H2:H191)),
(SUMIF($B$2:$B$191,"",I2:I191)),(SUMIF($B$2:$B$191,"",J2:J191)),(SUMIF($B$2:$B$191,"",K2:K191)),
(SUMIF($B$2:$B$191,"",L2:L191)),(SUMIF($B$2:$B$191,"",M2:M191)),(SUMIF($B$2:$B$191,"",N2:N191)),
(SUMIF($B$2:$B$191,"",O2:O191)),(SUMIF($B$2:$B$191,"",P2:P191)),(SUMIF($B$2:$B$191,"",Q2:Q191)),
[Code] ...........
View 2 Replies
View Related
Jan 18, 2007
I am performing a sumif to look to see if a number starts with #, then another to see if the the class is text, both are fine and both return values of 1 if it meets the criteria. My problem is i then need to add a sumif (or something im not quite sure wot) to add the cost if the number begins with a # and the class is text (so baically if both the other sumifs = 1).
View 9 Replies
View Related
Jan 8, 2008
I want to do a SUMIF formula and add only certain words in column A.
Column A has a list of airlines in it, and column H has a list of flight durations. I want to add together all of the flight times but for only a few airlines.
I tried to put OR in the middle of the SUMIF function, but it didn't work:
=SUMIF(C:C, "Air Canada" OR "Air Tahtiti Nui", H:H)
How would I get it to add together all of the flight times for Air Canada and Tahiti Nui, without having to put many SUMIF formulae?
View 9 Replies
View Related
Mar 25, 2008
I am using a sumif formula where if column b is a certain number then it will add up the value in column e.
This works fine, however now I wish to add another filter, which is only for it to add the values in column E if the value is b is correct (as above) and also if column c has a value of 100.
View 9 Replies
View Related
Nov 12, 2008
Column A |Column B |Column C
Store_Name| Dates |Revenue_Generated
I want to sum the revenue generated in every row where:
Store_Name = "x"
Dates >= Date1
Dates
View 9 Replies
View Related