# SUMIF Formula For Values In Different Rows

Feb 15, 2008
I thought that SUMIF FUNCTION should work for what I am trying to achive but it does not look like.

Here is the example: 1,2,3 etc. are rows and A, B,C - columns

A B

1 Gain (Loss) on Balance sheet reval, 91105(2,035,611)

2 Expense

3

4 NET Gain (Loss) on LTD 945,600

5 including Hedge on $ million Revenue

I need to write the formula in cell e.g. A8 that would look at my either "Expense" or "Revenue" and sum it if it is revenue or sumit if it is expense. I have the whole spreadsheet of rows and the label "revenue" or "expense" repeats almost always after 2 rows.

View 9 Replies
ADVERTISEMENT
Oct 25, 2007

I am trying to pull cell values similar to a SUMIF function (SUMIF(range,criteria,sum_range)). For example, in A1 I use a data list created from data elsewhere on the spreadsheet. In the data I created elsewhere, there are 2 columns being used. The 1st column is the information that is being used to create the list and the second column contains specific values (number or text). In the dropdown menu I select an available value (text or number) . When I have selected that value I would like cell A2 to show what the cell directly to the right of it shows from the data I have elsewhere in the spreadsheet as mentioned. I have tried the SUMIF function however it seems to exclude certain values (number or text) and I am not sure what else to use.

View 9 Replies
View Related
Aug 26, 2009

Can anyone tell me why this formula is not working?

=SUMIF($D$6:$AL$6,"=TM Goals",D12:AL12)

The entry under cell T12, which I am hoping this formula will pick up is based on the following formula.

=IF(E12="A",$L$5,"0")

View 12 Replies
View Related
Nov 14, 2008

For example I have a data set that will grow over time say 13 rows, I want to write a formula that will only use the last 3 rows with data entered and get the Median of those rows. I know that the Median Formula for the entire 13 rows would be =MEDIAN(A3:A16). Anyone know a way to make a Median formula only look at the last 3 in any given time without manually updating the formula's range?

View 3 Replies
View Related
Nov 15, 2009

Column A lists an account code on the summary line of each invoice. I'd like to copy this account code upwards for each individual line of the invoice so that I can summarise each type of charge by account code in a pivot table.

I'm a bit stumped as to how to do it. If possible I don't want to have to modify the data itself in any way so that I can paste new data in the each day without altering it.

I've started on the right with a CountA function for each row, which I was intending as a means to identifying the blanks rows and discount them, but it also showed up that each line requiring an account code to be copied returns a 4 and each invoice summary line returns a 9. I'm just not sure how to reflect this in a function.

View 4 Replies
View Related
Feb 25, 2009

I have used the following long but simple formula.

=SUM((B17*B14)+(C17*C14)+(D17*D14)+(E17*E14)+(F17*F14)+(G17*G14)+(H17*H14)+(I17*I14)+(J17*J14)+(K17* K14)+(L17*L14)+(M17*M14)+(N17*N14)+(O17*O14))

I need to copy it to numerous other cells. However I need the row fourteen values to remain the same while the other values change according to which row I'm copying it to e.g

=SUM((B20*B14)+(C20*C14)+(D20*D14)+(E20*E14)+(F20*F14)+(G20*G14)+(H20*H14)+(I20*I14)+(J20*J14)+(K20* K14)+(L20*L14)+(M20*M14)+(N20*N14)+(O20*O14))

Is there any way of doing this without changing the formula manually every time?

View 3 Replies
View Related
Jan 17, 2007

I want cell B4 on sheet 3, to show the value of cell B4 on sheet one ... only if there is a value in B4 on sheet one then i want the rest of row 4 to be copied to sheet 3 also.

HOWEVER if the value in cell B4 sheet 1 is BLANK/EMPTY then i want the full row to be over looked and the next row to be checked (B5 all the way to B30)

Once B4-30 on Sheet 1 has been checked and only the rows showing a data/value have been copied to sheet 3, i then want the same process to start again on sheet 2 - Again only the rows showing data/values to be copied.

View 9 Replies
View Related
Sep 3, 2007

I am trying to find a way of copying values from cells that are linked to another workbook and paste them to another sheet in same workbook to the end of last row entry. This needs to be done via VBA from a button. There are 35 rows and 9 columns linked to another workbook and they don't always have values (depending on source workbook). To cycle thru each row and copy if they have values and paste them to end of last used row on another sheet.

View 6 Replies
View Related
May 29, 2014

I am trying to use the SUMIF function to create a formula that will read the visible cells in Column B and if any visible cells in Column B are equal to or greater than zero I want Excel to sum the corresponding values in the visible cells of Column A. Not so hard but I'm having a difficult time getting Excel to ignore data in hidden rows.

See attached file for and further explanation : Sample.xlsxâ€Ž

I've tried using SUMIF as well as the AGGREGATE function but no success, yet.

View 5 Replies
View Related
Jun 19, 2014

I am having a list consisting of two columns. Column A describes a "product" and the currency directly below. In column B i have the quantity of the product and below the value. Now i have products in USD and EUR and would like to only sum up the quantity of all products which are in USD. A simple example is attached and i calculated the target valua manually. The values i would like to sum are market in red.

View 1 Replies
View Related
Oct 6, 2008

I'm using this formula below but it's not rounding up correctly.

=SUMIF('[Bill''s Angels Bowling.xlsx]Variables'!$D$8:$D$71,V3,'[Bill''s Angels Bowling.xlsx]Variables'!$I$8:$I$71)

The list of numbers is follow

45.815625

34.509375

30.7125

21.009375

Should be as follow

46

35

31

21

Total should be 133 I'm getting 132

View 4 Replies
View Related
Jul 24, 2009

I've created an example of what I'm working on since it involves personal information. See Attachment...

ExampleExcel.xlsx

I need to use 2 criteria to determine the Sum value for A2 thru A5. The Account# and the Type# below row 7 need to be the same as those listed to the right of the Sum column (A2:A5). I can change the Account# and Type# to text, but the Sum Range needs to be numbers.

I was able to Sum based on the Account range (=SUMIF(Account,B2,Sum), but I still need to make the Type range part of the criteria.

As you can see in the attachment, A2 = 8 when it should = 2 (as seen in row 8 under Sum Range).

View 7 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
Jun 12, 2009

I am thinking I need a sumif formula but having difficulty pulling data into sheet. The facts....

Sheet 1 (Summary Model): Location where I want to dump data

Sheet 2 ('Phys Demand Estimates_0-17'): Location where data exists

=IF('Phys Demand Estimates_0-17'!A2:A953='Summary Model'!B2,IF('Phys Demand Estimates_0-17'!C2:C953='Summary Model'!A5,SUM('Phys Demand Estimates_0-17'!E2:E953),0))

Translated...."IF in Sheet 2 looking up duplicate fields of Value1 = same value in list box on Sheet 1, and if in Sheet 2 looking up duplicate fields of Value2 in static list in Sheet 1, sum the values in Row E in Sheet 2.

View 4 Replies
View Related
Sep 1, 2009

I have numbers in cell K1 to K59 with the following formula =SUMIF (A1:A59,"nm",K1:K59). The formula only adds up the numbers from K1:K48.

View 2 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
Nov 24, 2006

I have an example, see attached. I am trying to find the sum of a number of columns where the critera is between a number of days ie values is greater than 365 but less than 1788 days. The values to sum is the amount for each row where this criteria is met.

View 7 Replies
View Related
Dec 26, 2013

table1.jpg

I am looking for a formula that will satisfy the following:

1) find all the values in column "A" that match

2) In column "G", sum up all the values in "F" that go with the matching values in column "A"

3) For example, in rows 14-16, the values in column "A" match. Cell G16 sums up F14:F16

View 3 Replies
View Related
Jul 2, 2009

Is there a way to replicate this code, so I don't have to Do the With [CODE] .......

View 9 Replies
View Related
Apr 13, 2009

I am trying to summarise data from 50 different files (updated by 50 different users) into one file in one place. To do this I created a simple sumif function that links to those files. This sumif works correctly when those files are open. But when I open my output file after changes have been made to one or more of 50 input files, sumif function doesn't work when I hit update at the file opening pop up question and get #value error. If I start opening those files this error goes away and it works great again.

View 2 Replies
View Related
Jun 12, 2003

Sumif formula. I need to somehow put a loop on the criteria or something...

The formula is sumif(range, criteria, sum range). The problem I am having is that I have about 20 criteria to select, and sumif is designed for one criteria. I know that I can type the exact same formaula in and have something like this...

=SUMIF(D25:D107,Variables!A6,F25:F108) + SUMIF(D25:D107,Variables!A7,F25:F108) + SUMIF(D25:D107,Variables!A8,F25:F108) + SUMIF(D25:D107,Variables!A9,F25:F108)+ SUMIF(D26:D107,Variables!A10,F26:F108)+ SUMIF(D26:D107,Variables!A11,F26:F108)

This is OK for a few variables but some formulas have multiple criteria in excess of 15-20. the other thing is that the criteria list will grow over time as more variable are added, and instead of changing the formulas throughout the spreadsheet, I would like to have a big range that I can slowly fill up as I go along

The ideal situation would be if I could put a range in ( ie A6:A30) and then when I get a new criteria I just add it to this range. This will make administration eaaseier by giving me one location to update data.

I will show you an example.. I want to calculate the amount of petrol I use based on three criteria - BP, Shell, Caltex ( the criteria being petrol stations that come up on my bill).

Column

A/ B / C/ D

Row / description / Amount/Variables

1 / Shell Petrol / $10/Shell

2 / Cat Food/$13/BP

3 / BP Store/$24 / Caltex

4 / Dog Food/$23

5/Shell Petrol / $98

6/Caltex Petrol/$31

7/BP stuff/$30

8/Shell Store/$70

What I have been doing is this...

=sumif(B1:B8,D1,c1:c8) + sumif(B1:B8,D2,c1:c8) + sumif(B1:B8,D3,c1:c8)

If I could somehow get the formula to choose the whole column D as the criteria range and get the 'sum if' to somehow loop so it goes down the d column and does the same calculation, but just changes the criteria variable each time, then instead of changing the formula, I could just add to the D column each time I had a new criteria I wanted to check.

I looked into DSUM and Pivot Tables. DSUM seems to work well with numbers, not variables and Pivot tables did my head in, especially seeing I know that there is a way to do this in a formula based way..

View 9 Replies
View Related
Oct 5, 2007

I have a column of multiple text values I want to pull and then in another column pull the value. I can do it on just one value =SUMIF(Sheet3!$F:$F,"NEX",Sheet3!K:K) but need to include multiple text values. Also if the text is not found I want it to return a "0".

I'm stuck on how to pull the mulitple text.

View 9 Replies
View Related
Jun 27, 2014

I'm currently using the below formula to calculate the values within a certain date range.

=SUMIFS(C2:C100,B2:B100,">=2014-06-27",B2:B100,"

View 5 Replies
View Related
Jul 2, 2008

I have a problem which is beyond my capabilities. I need excel to sum amount column (See example table below) by unique values in company column then conditionally sum those values based on the year of investment, stage of company and finally, the kicker, the summed Amount by unique companies value has to be less than a certain threshold.

For example, I want companies in Stage Column of Exit only and in year 2004 only BUT only if the sum of the Amounts by unique company values is less than 100. So in the example table this would return 0. I have code and criteria written to sum unique values based on similar criteria such as sum if company Stage is Seed and Year is 2004 but for the life of me I can't seem to make the jump further.

For Unique values I used this function:

=SUMPRODUCT(($B$2:$B2=Year04)*($D$2:$D2=StageS)*($A$2:$A2=$A2))=1

Then:

=DCOUNTA($A$1:$D9999,2, Criteria)

or

=DSUM($A$1:$D9999,2, Criteria)

This along with criteria explained before returns the number of unique companies that are Stage=Seed and Year=2004 or sum of amounts with that criteria.

I am trying to adapt this technique to get what I want but to this point have been unsuccessful. My best guess is that I will need to create an array of the unique companies (New Sheet column A) with the Summed Amounts (New sheet column B) and then run functions again with the easier equations and criteria? I am trying to avoid combining company records as each investment needs to remain individual and there are 16000 records. Any help would be greatly appreciated.

Company Year Amount Stage XYZ 2004 10 Seed XYZ 2004 20 Seed ABC 2004 5 Early ABC 2004 25 Early DEV 2004 14 Later DEV 2004 19 Later TRU 2004 100 Exit TRU 2004 120 Exit TRU 2004 100 Exit

View 9 Replies
View Related
Jul 19, 2007

I want use the formula sumif...something like that! =SUMIF(I77:I176;AND(>F1092;<F1091);Q77:Q176). I want sum the values between q77:Q176 if the value in i77:i176 is >F1092 and <F1091 But the multiple criteriun don´t work in the sumif.

View 8 Replies
View Related
Jan 18, 2009

I am trying to sum a column if Col B is equal to "TM" & Col A is equal to "Launch" then sum Col H. I am sure it can be done and I am hoping the right person reads this posts and enlightens me.

View 9 Replies
View Related
Jan 25, 2013

I have inherited a spreadsheet with over 800 rows (and daily expanding) and 14 columns of data. I've attached a sheet that looks similar, with only 200 rows for reference. Here are my questions:

1. How can I delete all rows that contain no values?

2. I want to fill an entire row of data yellow if the values in the final two cells (L&M) in the row are equal, and red if they aren't. How can I do that?

3. Column A contains only dates, from oldest to newest. I'd like an obvious visual clue for when the months change. Currently it's a long, merged, blue-filled cell that says "March 2011", for instance. It can't be color because all cells need to be filled based on certain criteria (see #2), and borders aren't obvious enough.

4. I want to click on the row number on the very right, but have it select only columns A-M, is that possible?

I'm also having trouble with autofill. It seems to only work on parts of the spreadsheet. I don't know what settings may have been changed, but I do have autocomplete turned on, and no clue what to do despite hours of googling.

Test Tracking Sheet.xlsxâ€Ž

View 4 Replies
View Related
Jan 29, 2010

I'm using Excel 2003. The sumif function will not allow me to ignore hidden rows in my data set that have been autofiltered. I tried using the following formula and it worked:

=SUMPRODUCT(SUBTOTAL(3,OFFSET(CopiedB!$I$2:$I$65000,ROW(CopiedB!$I$2:$I$65000)-ROW(CopiedB!$I$2),0,1)),--(CopiedB!$A$2:$A$65000=$A22),CopiedB!$I$2:$I$65000)

The problem I am having is that the sumproduct and offset funtions used to ignore hidden rows are considered "volatile" and force a recalculation. Moreover, I have this fomula pasted 100+ times and this dramatically slows things down even when I turn autocalculate off. Is there another way to accomplish a sumif with a user defined custom function in VB? I really need to have the ability to do a sumif that ignores hidden rows and is not dramatically slow.

View 9 Replies
View Related
Dec 19, 2006

I come across a spreadsheet that is using DSUM formula, I did not understand why someone used DSUM instead of SUMIF formula, because using DSUM formula they had to use two extra cells for criteria, as seen in this example.

I like to know is there any advantage of using DSUM instead of SUMIF in this example.

The formule they used is =DSUM(J109:K113,2,$M$2:$M$3)

and the criteria is G,D

so they are adding all Debits in that column.

I changed the formula to =SUMIF($J$110:$J$113,"D",$K$110:$K$113)

that of course does not need $M$2:$M$3 range criteria.

G 3458224.37

D 3401317.50

C 3401317.50

C 56906.87

D 56906.87

View 9 Replies
View Related
Apr 21, 2014

i am using "sumif" formula in cell C5 and C10, the next step is to add up these two cells (sum up the figures of "sumif"), then the answer will be +15+6=21, how to do with using single formula.

View 7 Replies
View Related