Sum Cells Where Other Column Equals Given Value
Nov 14, 2009
I have two columns, Column A which is a list of numbers and Column B which is a list of different sports. What i want is a formula that adds all the values in column A where the adjacent cell in column B equals a given sport (i will use Golf in this example).
View 2 Replies
ADVERTISEMENT
Mar 5, 2014
I am trying to count the distinct times a value shows up in a column, if another column has a 2 in it.
For example:
Columns
A, B
2,P25
2,P25
3,P5
3,P6
2,P5
The results shoud be: (2) Because I only want to count the P25 one time.
I'm using Excel 2010
View 2 Replies
View Related
Jul 25, 2014
how to count the unique occurrences in column A based on the value in column B. In the example below, I am trying to count the number of unique names in each state (Illinois=1, Colorado=2, New York=2). I would like the formula to count unique occurrences for the entire column A because I will be adding to the list.
..A.............B............C
John......Illinois
John.....Illinois
John.....Colorado
Alex.....Colorado
Alex.....New York
Steve...New York
Steve...New York
View 10 Replies
View Related
Aug 8, 2014
I have tried a range of "sumproduct" and "count if" and I am still not having any luck.
What I would like excel to do is to count what surgery/hospital (B)is referring for what product (F)
help.xlsx
View 4 Replies
View Related
Mar 13, 2012
I am looking to insert a row every time any cell in column A = R
This will happen around 50 times.
The inserted row will need to have an R in column A and the number 349273 in column B.
View 4 Replies
View Related
Mar 22, 2012
This is an extract from my workbook.
11661681192203
I need a formula in column d that will return all the missing values between for example b1 and c2 and b21 and c21. The catch is that the numbers in column b and c can be anywhere but row b will always have the starting number and next to that cell the ending number in column d.
a further condition is that it must only calculate the missing number if the value in column a=1. if it is blank than nothing must be calculated.
View 1 Replies
View Related
Aug 6, 2012
HTML Code:
Sub DeleteEmptyColumns2()
Dim Cell As Range
For Each Cell In Range("4:4")
If Cell = "0" Then
Cell.EntireColumn.Delete
End If
Next Cell
End Sub
I am attempting to remove columns in my table of data, using the above code seems to remove some them but not all, is this the best way to loop through a range?
View 8 Replies
View Related
Mar 29, 2013
I've seen a few examples of macros to delete the row if the first letter is something, but not if the first 2 is equal to something.
I'm looking to go thru every row that contains data and look in Column B to see if it starts with P4 or P5. If that's true, then delete the entire row.
View 8 Replies
View Related
Mar 14, 2014
I'm Trying to write a code to delete Value in Column E & F If value in Column A = 0. (same row)
I've tried a few methods but none of them work.
View 2 Replies
View Related
Aug 13, 2014
I have some data like the following:
2 3 4 8 4 1 3 3 1 8 1 3 5 8 1 2 5 6 1 7 9 3 3
I would like to be able to count the number of times 1 follows 8 for example. For the data above the answer is 2.
View 1 Replies
View Related
Oct 8, 2013
I'm trying to create macro that will clear the contents of the cells in the 4 columns to the left of a cell that = 0 %, as well as the cell that = 0%. For example, if cell F13 = 0 % then the contents of B13:F13 would need to be cleared. The range in which data is being pasted into is B13:F27.
View 4 Replies
View Related
Mar 25, 2014
formula that would count the instances in Column C, where Column A contains "LH" or "RH" as part of the word, and column B equals "Either".
View 5 Replies
View Related
Dec 12, 2009
I'd like to find out the formula where numerical valued between 1-2000 equals True and numerical under 0 equals False. Examples are in the attachment.
View 3 Replies
View Related
Sep 10, 2009
If Column "I" equals "Min", then look at Column "E"; if value in Column "E" begins with "88216" then input "Thuraya" in Column "G". If Column "I" equals "Min", then look at Column "E"; if value in Column "E" DOES NOT begin with "88216" then input "Voice/Sat" in Column "G". If Column "I" equals "Msg", input "SMS" in Column "G".
I need for all of this to be in one "simple" (haha) formula. I have tried IF/THEN statements, VLOOKUP's, etc, but cannot for the life of me figure this one out. At that point, Column "J" will VLOOKUP the correct rate and Column "K" will total the cost for the Row.
View 3 Replies
View Related
Oct 4, 2012
I have the following formula that is supposed to grab a value from C2 and check for that value in a range of cells and if it matches it is supposed to display the corresponding value in another range of cells. What am I missing??
=IF(C2='Google Doc'!$B1122:$B1266,"'Google Doc!K1122:K1266'","Not OK")
View 9 Replies
View Related
Apr 14, 2014
I am trying to find a solution for highlighting cells in a column that are repeats, ie. >3. I also need these cells to only be highlighted if the adjacent cell in the next column contains specific text. I have tried using conditional formatting with a countifs formula to no avail.
View 2 Replies
View Related
Feb 11, 2010
I could make up a little excel spreedsheet to do the scoring for the little aths. Works out, long time since Ive used Exeal and I have forgotten a lot of it.
1st Problem: If k15 equals "green" and also L15 equals "08" then display "8", if not then display nill. I tried: =IF(K15="GREEN" AND L15="08" ,"1","")
2nd: If C15 equals the same as L15 then display "OK" if not, then display "X". If you need anymore information, I'm happy to provide.
View 3 Replies
View Related
Aug 2, 2008
if colum A has a number and colum b say breakfast, lunch, or dunner how do i get colum c to add the numbers in colum A for all the breakfasts
View 10 Replies
View Related
Apr 1, 2009
I have a sheet where there is a column showing all the totals of previous entries, however a couple of the cells shouldn't total but just show the last entry.
The cell is for an ongoing count of year to date applications received.
Can anyone tell me a formula that would look for the last data entered in a row and return that value
View 9 Replies
View Related
Jun 16, 2009
how to hide a row if a value in a cell equals zero?
View 9 Replies
View Related
May 28, 2014
Why a formula would not automatically update? Possible problem is in relation to "<=" component of formulas'.
NOTE: This is not in relation to calculations option being set to 'Manual'.
This problem only effect two cells on my entire workbook and all other cells within the column affected, with the exact same formula, work fine.
The "<=" part of the formula is in relation to a drop down list with values from 1 to 12 and the formula works fine initially when flicking between the dropdown list numbers. But if I save the workbook on dropdown list number 2, the formula no longer works...
View 1 Replies
View Related
Dec 31, 2009
I have a column of numbers that after each sum there will be a subtotal. If the sum is a negative number then the new subtotal will be 0. Attached is a sample.
View 3 Replies
View Related
Nov 21, 2011
Im using this to loop through ID's for my code.
Sub Test2()
' Select cell A2, *first line of data*.
Range("A2").Select
' Set Do loop to stop when an empty cell is reached.
Do Until IsEmpty(ActiveCell)
' Insert your code here.
' Step down 1 row from present location.
ActiveCell.Offset(1, 0).Select
Loop
End Sub
How can I set a cell value = to what cell I the loop is currently on?
View 2 Replies
View Related
Sep 4, 2012
I have a line graph which plots the PERCENT_YIELD of units built (UNITS_PASSED / UNITS_BUILT) every week. I want to fill all future week cells with a formula so dragging the formula is not a manual operation every week (my overall goal is to automate a complex spreadsheet and charts as much as possible).
The formula is =IF(Q1080,Q109/Q108,)
Where Q108 is UNITS_BUILT
Where Q109 is UNITS_PASSED
My theory is if units were built (Q108 not equal to zero), plot the ratio. If no units were built (Q108 is zero) I do not want to plot any value on the chart.
The chart plots the correct values for the True conditions; however the chart plots a zero value for the False conditions. How do I not plot a zero for a false condition?
View 2 Replies
View Related
May 13, 2013
I have a formula =IF(D87=0,"",E87(D87-E87)/ABS(E87)) that returns a blank if D87 is Zero. if D87 and/or E87 is also Zero how would the formula look?
View 2 Replies
View Related
Sep 25, 2013
I have sheets that return their name with the following formula:
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,256)
All good, but on my summary sheet (that is summarising the data in each sheet) I want a cell to return me the name that each sheet is called, but simply saying ='SheetName'!B1 is not working
So how to I get the cell on my summary page to return me the text of the cell that is using the above formula.
View 3 Replies
View Related
Sep 26, 2013
I'm trying to verify if a cellvalue is available in an array. Here is the code:
First I tried to check if the cellval is in the array by returning a -1, 0 or 1:
Code:
If UBound(txt, cellval) = 0 Then
-> returns zero for value "h3", but also for value "3"
(where cellval the value in the cell is)
(with txt being the array containing "h3,r8,ty657", etc)
But I need only the If to be true when there is an exact match.
View 2 Replies
View Related
Nov 20, 2013
I have created a file in which other users use on a daily basis to input their time in and time out hours per activity. There are 16 rows allowing them to input up to 16 activities completed in a day. More often than not they do not use all 16 rows. My issue is that these users are very computer illiterate and will often delete the zero that is in their time in or time out hours on unused rows. This results in their total time displaying "####" I have explained to each of them multiple times to input a zero and their problems will be corrected, but they can't seem to grasp that concept.
How to allow the users to input their times, but if they hit delete on a cell and the cell is blank for it to automatically populate the cell with a zero no matter what the user does. I have all other cells with formulas on the sheet locked, but if I lock these cells then they can't input their times.
View 3 Replies
View Related
Jan 31, 2014
I have a round formula,
=round(D65-E65,4)
The issue with this formula is if D65 is 0...then the result is a negative number. Just for clarity,
D65=0, E65=10%.....
So I end up with -10%. I can't have a negative number so I'm looking if the result is negative then the cell just equals 0. Is this possible with an IF formula?
View 3 Replies
View Related
May 6, 2014
I'm trying to input a check into my macro. Basically the logic I'm trying to follow is:
If Row 1 = Row 2 then delete row 2,
ElseIf Row 1 Row 2 then Display MsgBox "Row 1 and Row 2 are different. Do you wish to continue?"
If user selects yes, resume
If user selects no, end sub and display MsgBox "Macro ended. Please correct changes manually"
View 6 Replies
View Related