Totaling Column B If Column A Is Equal To "Text"
Jan 4, 2010
I was using the formula below and it returns a count of how many times a salesman is quoted. Now I am looking something very similar. This time though I am looking to total the price of the second column instead of just counting how many times there is something in the column.
SUMPRODUCT(--(Active!$D$4:$D$200=$A35),--(TEXT(Active!$C$4:$C$200,"mmm")=E$32))+SUMPRODUCT(--(Cold!$D$4:$D$200=$A35),--(TEXT(Cold!$C$4:$C$200,"mmm")=E$32))+SUMPRODUCT(--(Wins!$D$4:$D$200=$A35),--(TEXT(Wins!$C$4:$C$200,"mmm")=E$32))+SUMPRODUCT(--(Sold!$D$4:$D$200=$A35),--(TEXT(Sold!$C$4:$C$200,"mmm")=E$32))+SUMPRODUCT(--(Lost!$D$4:$D$200=$A35),--(TEXT(Lost!$C$4:$C$200,"mmm")=E$32))+SUMPRODUCT(--(Dead!$D$4:$D$200=$A35),--(TEXT(Dead!$C$4:$C$200,"mmm")=E$32))
View 9 Replies
ADVERTISEMENT
Jul 26, 2007
I would like to total numeric amounts based text in another column.
For example, I have a bunch of rows in "column F" with the same text (company name) and in "column I" i have numerics. Is there a way to total "column I" based on the same text of "column F"?
View 7 Replies
View Related
Apr 25, 2014
For column "B" count all the 1's if column header is equal to name in column A.
For Column "C" needs to be checked if a value was filled in column "I" if yes then check if in column "L" has a value, count all these values.
View 5 Replies
View Related
Jun 8, 2014
I would like to create a formula that will sort the numbers in column B, there are also equal numbers in this column
The difficult part is that there is text in column A, and is linked to the numbers
So if numbers are sorted the names should be sorted in the same way as well.
View 3 Replies
View Related
May 19, 2009
What I want to see is, is it possible to total up the number of times a specific phrase appears in a column using a formula?
I have a column of information generated from an outside source. The information in each row of the column is either "TRUE" or "FASLE".
Say I have 200 rows, I want to count the total number of times "TRUE" appears in that column out of the 200 rows.
View 9 Replies
View Related
Jul 18, 2007
Is there a way I can display the total of a column on each printed page?
I have a table which is about 6 columns long but is hundreds of rows down. I would like the total of one of these colums to be displayed on every printed page. Is this possible?
View 6 Replies
View Related
Jun 29, 2008
I'm trying to count if there are situations where column a is equal to a specific number and column b is equal to another number.
both columns are numbers. Does anybody have a good idea how to do this, maybe countif, but i am not sure how to do more than one item with that.
View 9 Replies
View Related
Dec 6, 2013
I need to look up the name in E2 in the list in column A and if it matches then lookup name in F2 in list column b, if it matches then the corresponding number in column C is displayed in column G. If neither names are in the 2 columns the words"Not on lists" is displayed in cell in column G.
The other problem is one name is spelled two different ways I want it to look for both spelling before moving on to looking up the second name.
I started with this formula but I'm getting #N/A or "not on list" when they are on the list. I'm using ranges prod_sum is columns AthruC, Last_name is range BthruC. =IF(AND(VLOOKUP(F4,prod_sum,3,0),VLOOKUP(I4,last_name,2,0)),"not on list")
View 6 Replies
View Related
Dec 8, 2009
I have a sheet where i want to delete duplicate rows where column A and column B combined are equal, i.e. range(Ax:Bx) where x is the current row. I am using the macro below but cant seem to get it working as I keep getting a type mismatch error and Im not sure why.
View 2 Replies
View Related
Dec 27, 2013
I'm struggling with a fairly simple forumla where I want to add up Column "R" whenever and "X" is placed in Columns T:W.
Then as a second piece I want to subtract out the largest value that was pulled from Column "R".
I've attached an example with notes of what I'm trying to accomplish.
View 6 Replies
View Related
Apr 27, 2004
=COUNTIF(A19:A28,(AND(B19:B28="YES",C19:C28=5)))
What is wrong with my formula above? I am trying to count Colunm A if the value of Column B is "YES" and Column C is equal to "5".
View 8 Replies
View Related
Mar 11, 2013
The following code doesn't seem to work for me except when I use an actual number.
Set MR = Range("A1:A100")
For Each cell In MR
If cell.Value = "*3L*" Then cell.EntireRow.Font.Bold = True
Next
I am attempting to bold the entire row if the macro finds text that begins with 3L in a tab. If I change the code to look for a number, then it works fine.
Also - Is there a way to make this run on specified tabs? For instance, if I have four tabs:
January
February
March
Q1
Say I only want it to run on the January, March, and Q1 tab, how would I go about doing that?
View 2 Replies
View Related
Sep 15, 2014
Dividing column in equal parts divide a column in groups with the same rows and the same total sum? For example, I have the column A as following:
8,942
2,807
2,568
5,818
5,818
596
8,942
4,390
1,607
890
8,772
1,103
The total number of rows is 12 and total amount is 52,254
I want to divide the column in three equal parts with the same total. So each group must contain 4 rows with the total sum 17,418
View 9 Replies
View Related
Jun 3, 2014
I have a table full of phone numbers and call durations.
In A2:A6160, I have 162 different phone numbers and in U2:U6160, I have the call durations for calls made to those numbers.
In a separate spreadsheet, I have each number listed in Column A and in Column D, I want to display the average call duration for each of the numbers.
View 3 Replies
View Related
Dec 23, 2013
I am working on a proforma statement, REFER THE ATTACHMENT
A B C D E F G H I J Q
1 jun'14 jun'14 jun'14 jul'14 jul'14 jul'14 Aug'14 Aug'14 Aug'14
2 beg. Inv Purchas Unit Sold Beg. Inv Purchas Unit Sold Beg. Inv Purchas Unit Sold
3 foundation 4 10 11 3 15 13 5 16 18
4 Lipstick 4 10 11 3 15 13 5 16 18
5 Shimmer 4 10 11 3 15 13 5 16 18
6 Powders 4 10 11 3 15 13 5 16 18
7 Nail Lacquer 4 10 11 3 15 13 5 16 18
8 Eye Shadows 4 10 11 3 15 13 5 16 18
9
10
11 Total Purchase for june to aug 2014
12 Foundation ??
this is just an small sample of what i am working on i have got purchases, cogs and ending invenory for 2 years Products wise i want to add purchases for the particular product.
i.e. if for above data i want to find out the foundation purchased through june 2014 to aug 2014 what will be the formula
View 4 Replies
View Related
Apr 26, 2009
This formula in E1 has worked before. I have attached an example, in reality Column A and B have 2000 rows and column D about 250 randomized numbers out of Column B that need to be paired with their equal in Column A.
View 4 Replies
View Related
Oct 12, 2009
I need to apply two criteria to a COUNTIF. Eg, I need to count if one column is equal to "N" and another column is equal to "N/A", taking both criteria into account. At the moment it seems to knock one out when I try applying both!
View 9 Replies
View Related
Mar 25, 2014
How can I multiply let's say A1 to 10 if B1 = 5
or multiply next cell like A2 to 15 if B2 = 10
View 3 Replies
View Related
Nov 13, 2013
I have three columns: Symbol, Dividend Payment, and Shares.
What formula will look at the shares column and symbol column and say if cells in column C are equal each other & cells in Column A are equal to each other than add all the div payment that correspond with those symbols and shares?
A
B
C
D
1
Symbol
Dividend Payment
Shares
Sum (Formula would go here)
2
SEB
.75
23
3
SEB
.75
23
(result desired) 1.5 (B2+B3) because (add the dividend where their symbol (A2&A3)and shares (C2&C3)are equal) both conditions have to apply to add div payment
[Code] ......
View 3 Replies
View Related
Dec 24, 2008
I need to group all records where the values in column A are equal. BUT I needed them sorted by another column (the whole sheet, not just within each group). Currently, all of the values in column A are listed in random order. Is there any way to do this manually?
to elaborate a bit further, consider the following:
Columns: A-B-C-etc.
1-Z...
1-X...
4-X
3-Y
4-Y
2-Z
Basically, I need to group all of the "1"'s and all of the "4"'s so that the extra values will show underneath the other. HOWEVER, I need them to be sorted such that the order in which they appear are XYZ. So the goal would be:
1-X
1-Z
4-X
4-Y
3-Y
2-Z
View 9 Replies
View Related
May 14, 2009
Starting in cell F3, if Column F is greater than or equal to zero, delete the entire row and continue deleting rows until Column A has contents in it. Then go to Column F in that same row that had contents in Column A, if the contents in that row of Column F are greater than or equal to zero, delete the entire row and continue deleting rows until Column A has contents in it. Persist with this pattern until every row in Column F has been checked.
View 4 Replies
View Related
Dec 3, 2012
I need automatically deleting of whole row based on cell value, if value of cell which is in h:mm format, is less than or equal to 2:00 (h:mm)
So far I got.
Code:
Sub FillDownFormula()
Code:
Range("L2").Formula = "=RC[-3]-RC[-2]"
Range("L3").Select
Columns("l:l").Select
Selection.NumberFormat = "h:mm"
Dim rng As Range
[Code] .........
View 2 Replies
View Related
Jun 6, 2006
I am trying to do is erase the entire row if column J is equal to 1205. I have made an attempt which is shown below, but I am no where near a VBA programmer, yet.
Sub Softrak_Format()
Rows("1:2").Select
Selection.Delete Shift:=xlUp
Cells.Select
With Selection
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False........................
View 4 Replies
View Related
Dec 24, 2013
I have 2 sheets with thousands of clients. One has client contact information and one revenue. I was able to put the 4 columns on 1 sheet. I need a formula that will say if the value of the client name columns match, (Client name) then return the value in the third column (revenue).
One other question, b/c i copied from a pivot table, i have the client name and their email address below in a separate row. Ideally i would have the client their contact and their revenue in 3 columns next to each other. Is there an easy way to bulk move the email address from the row below the column to the column next to the client name?
View 7 Replies
View Related
Jun 11, 2014
Need a Macro to delete all rows containing values less than or equal 300 in column A
View 5 Replies
View Related
May 7, 2014
I need an easy code that searches all of column A and deletes the entire row if the cell has the value "-". It needs to find the last row of data using something like LastRow = Range("A" & Rows.Count).End(xlUp).Row
View 4 Replies
View Related
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
Dec 20, 2013
Formula(s) to do as explained in the attached example.
Example_formula.xlsx
View 9 Replies
View Related
Nov 7, 2009
I am running Win XP and Excel 2003.
I have a macro I found here on the boards written by Lenze to delete an entire row based on what is found in column A. I would like to delete any row where Col. B contains 10 or less characters and I have modified it to do so (or at least I think it does). My problem is that it takes about 12 minutes to run the macro (I have about 50k lines to run through). I was wondering if this is the fastest method or if it examines things other than just column B.
Sub Test()
Dim i As Long
LR = Cells(Rows.Count, "B").End(xlUp).Row
For i = LR To 2 Step -1
If Len(Cells(i, "B")) < 11 Then Cells(i, "B").EntireRow.Delete
Next i
End Sub
After this runs, I am left with Columns A to somewhere around AH. The columns are generally in the format of text followed by a numeric column. An individual text column has the same name through all of the rows. The numeric columns have varied values whether negative or positive.
Ideally what I would like: If a given cell (ie. C2) in Row 2 is numeric, then copy the cell to the left (ie. B2) into (ie. C1) and then delete Column B. I need this to work for multiple columns from B to C, skip D and E, and then from F to AG (and maybe beyond).
View 9 Replies
View Related
Sep 13, 2013
I want to take what is in column A and replace the number after the "=" with new number.
I need a formula that identifies the 6 numbers or letters after the = and replaces with column A
111111 showstocknumnber//details.php?vid=111111
222222 showstocknumnber//details.php?vid=111111
345673 showstocknumnber//details.php?vid=111111
The 111111 after the = could be any string of 6 letters and numbers. The contents of column b are a URL.
View 1 Replies
View Related