SUMIF Based On 2 Conditions From 2 Columns
Have had a search around the web forums for an answer to this and am not getting anywhere.
In column A i have text - apr, may, jun etc
In column E i have general format text - a 6 figure number
in column M i have text - eg 886.97 (a currency, but in text format)
i want to:
where column a=apr and column E=212130 sum the contents in column M
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Return Range Address Across Different Columns Based On Conditions
I am trying to return a cell address range based on values in different columns. Attached is an example. In Column A1 I have "Range" and below that a set of numbers from 1 to 31. In Column B1 the name "Test" is used as an identifier, below that are the letters "a" though to "e". Once the letter "e" is reached the identifier "Test" is moved to column C "C6" and the alphabet continues from "f" down to "j". This process is repeated through the rest of the alphabet and the identifier moved to the next column after every 5th letter. What I want to do is as follows:- I would like to know the cell addresses of all instances of "test" from Column A numbers 6 throught to 24. The result should be C7:C12, D14:18 & D20:24. The results should ignore all instances of the identifier "test" and only return the cells which contain the letters of the alphabet. I have tried using Vlookup which works well if the letters are all in the same column and I have incorporated the Address and Match formulas to return the range if all the alphabets are in the same column, but I do not know how to do this if the identifier "test" and letters move to a differnt column.
View Replies!
View Related
Sumif Two Conditions
Below I have a formula which for some reason or another I cannot get to work. It is an array formula and it as worked before. I am not too sure if the reason for the formula not working is because there is a formula in each of the columns that it is looking up. And I keep getting the result of #N/A. The formula which I am having problems getting it to work is; =SUM(IF($D$3:$D$43=$B$57;IF(I$3:I$43="~*~";1;0);0))
View Replies!
View Related
Sumif (4 Conditions)
I have two columns with numbers and want to build the sum of them with a condition. These are stock prices. So prices go up and down and I can go long or short. I have a column that indicates if I went long (l) or short (s). If I go long (l), and its a winner, I want to have the sum of Exit Price - Entry Price. If I go short, and its a winner I want to have the sum of Entry Price - Exit Price. If I go long (l), and its a loser, I want to have the sum of Entry - Exit. If I go short (s) and its a loser, I want to have the sum of Exit - Entry. Overall I just want to make sure that the sum has the right algebraic sign (+ or -), depending on whether it was long or short and whether it was a winner or a loser.
View Replies!
View Related
Sumif For Several Conditions
I need to sum amount if several criterias are met. I have attached an example of the report I need to reference to. If column A=724 and column B=ZZZ I want to sum on the amount in column C next to ZZZ. The problem is that ZZZ is not always in the same cell, or it's not even in the report if it has no amount. Is it possible at all to sum on those complicated criterias,
View Replies!
View Related
3 Conditions - SUMIF Or SUMPRODUCT Or...?
I have 4 columns, A B C and D. They are a mix of formats. A= Name (text) B= Date C= Code (text) D= Number I need a formula that gives me the total from column D, provided conditions for columns A, B and C are met. The date condition is month only, so I'm using MONTH(1) for January etc. I can find a formula if there are only three columns total (using SUMPRODUCT), but not 4.
View Replies!
View Related
SUMIF - 2 Conditions - With References
I have the array formula: =SUM(IF((Sheet1!$Y1:$Y5809="26")*(Sheet1!$AJ1:$AJ5809=CREDIT!$A4),1,0)) It works fine except I want it to reference the cell that the number 26 is in rather than having to have it in quotes, i tried this, but don't get the same answers as this way. The reason being is more conditions may be added in the future which would mean for example the 26 could change to a 34 etc so i rather not have to have someone manually change that number in the formula and just have it refence a cell.
View Replies!
View Related
SUMIF With Multiple Conditions
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 Replies!
View Related
Multiple Conditions With A SUMIF
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 Replies!
View Related
SUMIF With Multiple Conditions That Are Offset
I am really stuck here and need help with a formula. I have attached a sheet visuals. I want to add up all the numbers that contain two specific accounts#'s. One account is directly across from the number, where I can use this formula very easily: =SUMIF(Q1:Q288,AF245,Z1:Z294) The second account is in a different column, but it is not directly across the number. It is five cells below. So basically am having a tuff time applying these two conditions, where one condition does not directly align with the data I want to add.
View Replies!
View Related
SUMIF Multiple Columns
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 Replies!
View Related
SumIf On Moving Columns
I am doing a SumIf function on some Imported data a follows "=SUMIF(FMEFactors!B:B,Long,FMEFactors!B:B)". Now, this is fine if the columns are imported in the same order but if Column B data gets moved to another Column the SumIF will give false information. I need to find the correct column to do the SumIF on.
View Replies!
View Related
Sumif Which Returns Multiple Columns
I've noticed recently that a sumif formula will only ever add up 1 column's worth of data. Is it possible to get it to do multiple columns? For eg, I have a spreadsheet that looks like: Using the formula shown, I can easily add up values for 'A' codes for one of the 3 columns, but short of adding together multiple sumif's, there must be a more intelligent way of doing it?
View Replies!
View Related
SumIf Two Columns Meet Criteria
On the attached example i would like a formula in F2 which sums all the values where column equals "Smith" and column B equals "Golf European". I'm assuming it would involve the SumIf formula but i'm not sure if this is the best solution when the criteria is in two columns?
View Replies!
View Related
Sumif & Offset To Different Columns
I think this is simple, but I can't seem to get what I want. I have three columns. A: months for a few years (rows 3 - 37) B: data-set 1 that starts in the middle of the timeline to present (rows 20-23) C: data-set 2 that starts at the beginning of the timeline to present (rows 3-23) Now, I need to sum for the previous 12 months at the bottom of each column. For column B, I only have 4 data points, so I want to add the 8 data points for the previous 8 months from column C. How do I do this without just doing a couple sum functions -- is there a function that will evaluate the situation on its own?
View Replies!
View Related
Make Columns Visible/invisible As Per The Conditions
I am trying to create a daily task activity sheet. I would like to know, how to make the columns visible and invisible as per the selection from previous column. For eg: Column A has a list which has values 'TC creation' , 'TC modification', 'System Test' etc. Upon selecting TC creation, i need to make a column visible ie 'total tcs created'. Upon selecting 'TC modification' i would have to make the previous column invisible and make a new column visible for entering no of tcs modified. Upon selecting 'System test' the other columns should go invisible and make other 3 columns visible for no of tcs executed, no of tcs passed, no of tcs failed etc...
View Replies!
View Related
Sumif Based On <= Value
I'm trying to write a statement to incorporate 1 more piece of the puzzle. the formula I have is =SUM(SUMIF(Sheet3!$F:$F,{"F12","F24","F26"},Sheet3!K:K)). In Column F, I have text and Column K, I have numbers. I want to add to the formula if value in K is less than 1, don't add it
View Replies!
View Related
SUMIF - Trim And Concatenate 2 Sets Of 2 Columns Giving Answer In Another Column
I have two sets of two columns which contain numbers as text with trailing spaces and I want to concatenate column A and B and concatenate column F and G, and then compare them, and sumif value in column I if they are the same - giving the answer in the same row as the matching data in column A and B.. but in column J. I’ve seen sum product and haven’t been able to get it to work at all. I have been adding the trim() function in around the column references to see if that would work but am failing… A = 2000 text B = 1234 text F = 2000 trailing spaces, text G = 1234 trailing spaces, text I = 10,000 Answer in column J I want 20001234 = 20001234 = 10,000 for the whole column. I don't want to change the original data as its externally sourced and used for other links etc.. This would save a few hours a week if i ( more correctly, you ) could get this to work.
View Replies!
View Related
SUMIF Based On Text
How can I do SUMIFs based on columns that contain text? Im having some trouble with them. I just need to check column H for the text "Newham" and then total the corresponding cells in column F
View Replies!
View Related
SUMIF Based On Two Criteria
I want a formula to sum all values if two different criteria match. I've attached a sample below. The TaskID and the Time Entry ID are the two data points I'm searching for and the totals column is where my sum statement would be. The numbers are being pulled from another worksheet.
View Replies!
View Related
Sumif Based On Currency Format
I have a list of sales made during a certain period. They are either in £ or $ and are in a list. Essentially like this (but with lots more info): sale1 £300 sale2 $450 sale3 £150 etc... What I would like to do is to have two cells at the top which sum only the £ values and a cell whcih sums only the $ values. Is this possible? My idea to was do a sumif formula based on the cell format of the sales value, but I can't see a way of doing this. The only other way I can see is to have a simple addition formula selecting only the certain cells i want, but this would be labour intensive to maintain, as the formula would need to be updated eachtime a new line is added.
View Replies!
View Related
Sumif Based On Cell Color
I have just installed Excel 2007. Is there a way to sum a range of cells based on cell color in Excel 2007 without creating a macro or UDF? I was told there was, but I can't find it and for some my reason my help index is corrupt.
View Replies!
View Related
SumIf: Keep Stocks, Based On 2 X The Sales
As you can see I am using the code below in ( I ) =IF(OR(G5="",H5=""),"",-INT(-(-INT(-2*G5/C5)*C5-H5)/C5)*C5) What I am trying to do is keep stocks, based on 2 x the sales, as you can see G5 I have 15 I still have stock of 35 so I should not need any stock but it has put 50 in. The 50 is a layer rate that I need to order in if I need any. If I had 20 sales and 19 in stock I would want it to order 50. It is the same for all the ones listed in the sheet apart from I8 where it should have ordered but only 40.
View Replies!
View Related
Sumif Based On Range Of Numbers
Would like to know the formula to sum up values based on a range of numbers. For example, to sum value in Column B if the range in Column A is within 8100000 to 8150000. Column A Column B 8110000 110.00 8130000 250.00 9100000 300.00
View Replies!
View Related
Sumif Based On Multiple Variables
I am trying to do a sumif based on two different columns. For example In col A I have part #s, in col B i have quantity, and in col C, I have the different representatives. I want to import the qty sold onto another worksheet. In the cell for the total number I want to know, how many of part# 401 were sold by rep A. Here is the sheet that the information will be drawn from: Part#QTYREP 4011A 4023A 4031B 401 1 A Here is the sheet that the information will be output: Rep Part#AB 4012 4023 4031
View Replies!
View Related
Countif (check The Data For The Following Conditions, If It Meets The Crirteria Then Place A 1 In Columns)
the traditional count if statement doesnt return what I need. I have an array of values that need to be checked. Column: A B C D E Data: .25 .49 .18 (Criteria 1 Result) (Criteria 2 Result) What I need to do is check the data for the following conditions and if it meets the crirteria I need excel to place a 1 in column D or E. Criteria 1 If any of the coulmn data contains a value less than .5 I need a 1 placed in column D Criteria 2 If any of the column data contains a value greater than .5 but less than 1.0, I need a 1 placed in Column E. I tried using an IF/ Count If statement, but cant seem to get it to return the result I need.
View Replies!
View Related
Lookup Based On Two Conditions ...
I know that there are bunches of threads concerning lookups with multiple criteria, but I just can't figure out how to translate one to my situation. I want to return a value based on an item name which is in column A, and an operation which is in row 1. The array from which I need to look up the value contains part number in column B, operation in column G, and the actual value I need returned in column H. So I need to return something like this: ...
View Replies!
View Related
Get A Result Based On Several Different Conditions
New to the forum and in need of a bit of help. Friend of mine is in here regularly looking for assistance and tells me this is the best excel forum around. Thought I would put it to the test with a problem that is doing my head in. The following is a table which shows a salesmans sales. He or she has sold to 8 customers. What I need to do is show in the commission column how much they should get paid for the additional products based on this criteria. 1. If the penetration is equal to or over 41%, and he has sold the additional product for max profit of 250 then he should get £40 2. If the penetration is less than 41%, and he has sold the additional product for max profit of 250 then he should get £25 3. If he hasnt sold the product for full amount then he gets 10% of the profit, regardless of the penetration ...
View Replies!
View Related
Display Value Based On 2 Conditions
I have a workbook with 2 worksheets. The first sheet provides a summary showing the last date a person attended a specific course. The second worksheet is a list of all courses, attendees, dates, and status. I need a function that will match the attendee and course from the Master and display the date from the master in the corresponding cell on the summary sheet....
View Replies!
View Related
Lookup Based On A Few Conditions
I am wondering if I can do a formula that would tell me if the name that appears in column J or K appears more than once at the time/date slotted in columns A and B. Basically, I want to make sure that the name(s) in column J and K aren't assigned 2 different places at the same time slot (column B) on the same say (column A).
View Replies!
View Related
Lookup Based On 2 Conditions
In the sample that I have attached. I am trying to compare Control ID and Business Date in Sheet[Test] and Sheet[Perform], If they are the same, then populate in Sheet[Perform] Column Test Status with the corresponding row in Sheet[Test]. note that Control ID and Business Dates are not constants.
View Replies!
View Related
Sum Based On 2 Conditions
I want to have SUMIF and IF functions to be combined. i tried using the formula SUMIF( Timesheet!D2:D55,B2,Timesheet!F2:F55) but i want to edit the range everytime. Can i have formula like if name = Ant merce and prj = Implementation support, then the sum will be 15 for the sumrange of Timesheet!F:F (entire F column)
View Replies!
View Related
SUMIF With Two Text Based Criteria Using INDIRECT
I have a need to sum values in the right column of a 2 column table based on multiple criteria of the values in the left hand column. The table has 500 rows. The two criteria are: 1 - that the cell contains a specific text string ("product a")and 2 - that the cell contains a text string for the month in question ("Jan") The other limitation I have to work with is that the formula is in a different workbook to the source data. I have a worksheet that lists the external workbook/sheet and have been using INDIRECT in the DSUM. I read through the examples here: [url] Basically they recommended DSUM as the most efficient. I can get the DSUM working, but it needs the workbook to be open before it can evaluate the expression and therefore I get an error when I select to update values upon opening the workbook. So in summary I wondering if anyone can show me how to write a SUMIF formula based on the above criteria.
View Replies!
View Related
SUMIF Function Based On Row Selected
I would like to create a UDF similar to the SUMIF function but the UDF would be dynamic in that it would sum based on a dynamic range that would change based on the row the user is in. background: I have a very large input template for 12-18 months for multiple cost categories. I would like to have the UDF in a specific cell above each category that would show the user what the sum of the range in the current row they are inputing data. Each row represents a specific project/task (along with 12-15 descriptive columns) that makes the freeze pane option unusable.
View Replies!
View Related
Summing Based On Multiple Conditions
I have been trying to search an array and cannot find the correct combination of functions to get the information I want. I might need a macro to do this but I will try anything. Here is an example: 1 A 1 1 B 2 2 A 3 2 B 4 3 A 5 3 B 6 I want to search for 3 and A and return the value in the 3rd column. I have tried several functions but cant figure out how to make sure I get the correct value in the 2nd column that corresponds to the value in the 1st column.
View Replies!
View Related
Cell Value Based On Multiple Conditions
I need to create a macro that will calculate a value based on the contents of multiple cells. Looking at the example attached, if columns A and/or B (employee ID and name) are empty, then allowable OT (G) should be 0. If either have data, then if Stage (F) is CAN, G should be 20. If Stage is FAS or FAR, G should be 10. I'm not very savvy with IF statements, which is how I imagine this can be done, and I don't know if this would be easier to do as a macro or as a formula within G. Since the contents of the of the cells will be changing on a weekly basis, I'd prefer the formula to only be there if there is content on the line, so we don't have nulls showing.
View Replies!
View Related
Reset Cell Value Based On Two Conditions
I am trying to build a spreadsheet that tallies hours worked and hours available for the next day. The key to this spreadsheet is the number 70. A worker can accumulate no more then 70 hours in an 8 day period, however after any day with no hours worked the rule resets to 70 hours available again. I have attached a sample spreadsheet so you can see how this should work.
View Replies!
View Related
Sum Based On Multiple Conditions
I am trying to sum numbers based on three counditions. My problem the third condition needs to use a wild card. I have attached a sample file, in the last condition I am only wanting to sum numbers where the characters in the last column begins with bd* The yellow cell contains the formula I am using.
View Replies!
View Related
Selecting Values Based On Conditions
find a book with two sheets. One contains data and the other is the report that I must generate. In sheet one ull find the list of all the trucks received. I would like to see all trucks that I have received in the month of say June in the report sheet as per its arrival date when I change the month on the top of the report.
View Replies!
View Related
Extract From List Based On Conditions
I want to know how I can make Excel look at a list of information on one worksheet, extract certain items from the list, and place it on another workshet For example, the following list would be imported from an inventory program as text and pasted on worksheet 1: P+green beans d-2.99 c=2 cd+10258 p+cherry tomatoes d-3.99 c=1 cd+11204 p+red apples d-.69/lb c=3 cd+08902 p+tissue d-1.99 c-2 cd+20023 How can I have Excel take this information and create a list like the following on worksheet 2? ...
View Replies!
View Related
Calculate An If Value Based On A Number Of Conditions
I am trying to create on excel order form. I want customers to be able to input the item # (a range from 1 to 12), then I want the to price to be calculated based on the item # they input. For example. If they choose item #2 in A6 then the price in F6 will be recorded as $8.00. (the price would change for each item # they input). the formula I started out with was: =IF((A6=1),"$8.00") this worked for me if A6 did in fact equal 1. So I tried adding this equation to the formula. =IF((A6=1),"$8.00")*OR((A6=2),"$7.00")....this would continue on. I even pressed "command return" after the statement as if I was entering an array formula. I got the error #VALUE!
View Replies!
View Related
Returning A Text Value Based On 2+ Conditions
I'm trying to lookup values that are a combination of text and numbers. The difficulty is I need to use two criteria to look it up. I've been trying to use a combination of Sumproduct and Index,Match but it doesn't seem to be working. I think I need to add some sort of text function in there. Below is some data for example purposes. A B C E F G M S Get value from G M S 5G M T M T 6M M U M U 7H M V M V 8K
View Replies!
View Related
Average Based On Multiple Conditions
Im currently trying to report on cycle times for a certain task that is carried out on a daily basis. I have used NETWORKDAYS to calc each rows cycle time in Cell R14:R512 the code is:- =IF((NETWORKDAYS(O14,N14)-1)*($AH$11-$AH$10)+IF(NETWORKDAYS(N14,N14),MEDIAN(MOD(N14,1),$AH$11,$AH$10),$AH$11)-MEDIAN(NETWORKDAYS(O14,O14)*MOD(O14,1),$AH$11,$AH$10)=0,"",(NETWORKDAYS(O14,N14)-1)*($AH$11-$AH$10)+IF(NETWORKDAYS(N14,N14),MEDIAN(MOD(N14,1),$AH$11,$AH$10),$AH$11)-MEDIAN(NETWORKDAYS(O14,O14)*MOD(O14,1),$AH$11,$AH$10)) This is returning the cycle time providing both the start date/time and end date/time are filled in, or it returns blank if nothing has been filled in. I have then tried to calc the average overall cycle time in Cell R12 by using the below formula = SUM(R14:R513) / (COUNT(R14:R513) - COUNTIF(R14:R513,0)) This seems to be working proved i have two rows of data filled in. My problem lies when all the cells are blank, it then returns the DIV error. I have tried using an if statement to ignore if the cell is blank but it still returns the DIV error. Im really at a loss on this and now im not even sure if i have gone about this in the right way or if there is a better way to approach the whole task? I have attached a sample workbook to try and better explain.
View Replies!
View Related
|