Find Most Occurring Values In Column A And Consolidating Each Value Quantity?
Jun 12, 2014
As part of my work as an intern, my company wants me to look at all of the office supplies ordered by their retail stores and find out which items are most ordered.
The invoice excel file I received from our office supplier has a column for the Item # and Quantity of that item. However, there are multiple occurrences of each Item # because this invoice is itemized by store. Is there a way to consolidate all of the values in the Item # with each other to remove the duplicates while also consolidating all of the quantities of each?
For example:
Office Supplies 2.PNG
The invoice is much longer and has many more different Item #s and many more duplicates but this is more or less the same format.
I used COUNTIF with an advanced filter with Unique Records Only selected but I realized that only gave me the count of the Item #s and didnt factor in the Quantity of each Item # ordered by each retail location.
So basically I have 9 columns. I want to count the amount of times "D" is used in the rows below them and then find the column name of whatever column one has the most.
I have 12,000 rows on my excel spread sheet of data and my average volume for all those days are 17,661,398.6 I noticed that the so called average did not show up not even once in all of the 12,000 rows. Thus I conclude that the average is not normal ? How to find & highlight the most frequently occurring number, the usual, and or the normal numbers?
I have a few columns referencing Crash numbers. The majority of each column is a null value, with about 10-20% of it actually containing the number of a Crash. I want to run one MODE each on a column to see what the most common Crash is.
The following =MODE(Table_X[Crash Alpha])
Results in a #N/A Value Not Available error. What do I need to change to make it work on the column with some nulls and some numbers (no strings)?
As a secondary question, if I wanted to apply a date filter (the columns are part of a table, including a Date column) like the below:
Find the most common occurring string in my spreadsheet based on a lookup value. For example, if my table is as follows:
Capture.PNG
- I want to calculate the most common value chosen by user 234 (A in this case), user 524 (B in this case)... and so on. - I want to calculate the percent of the chosen value. So in the previous point, A was chosen ~67% of the time by user 234... and so on.
I'm not sure which formula to use. I am able to find the most common occurring value in column B using the formula below (which I found here), but how can I do that for a specific value, a user ID in this case?
I have two idential spreadsheets with several rows of items each with different packaging quantities, price break quantities and corrisponding prices next to each break quantity. I'm trying to build a discounting sheet on an idential page by using formulas that read off the price sell in the same relative position on sheet 2. Below is one row of sheet1 and the idential row of sheet2 - underneath the cells are the rules I would like incorporate:
I have 3 sets of textboxes. The user inputs information and all the nformation for each are consolidated to one textbox(delaycomments.value)
2 of them are controlled by a calendar input. THe user chooses a date and the date is shown in a textbox. Then they enter notes in the the each comment (delay1, delay2, delay3)
The current code below works, however the spaces I used in between still show even if the values are empty.
So, the "-" that is used to separate the dates still shows even if there aren't any dates. And the ": " still shows as well.
If there is only information in delay1, this is what shows in the consolidated box(delaycomments.value)
5/7/2012-5/7/2012: test. -: -:
Is there a way to convert these to an if then statement to make sure the text only appears if there are values in the cells?
I have situation which needs expert advice. I have about 22 Excel files of different branches with similar data. I have to link some calculated cells from each of these files into one file to show the consolidated data. There are about 18 calculated cells in each file, so linking each one is practically impossible.
I'm looking for a formula, procedure or vb code I can use to keep only 5 of these records based on whats in column A. So if there's 50 lines that have 300 in column A, I want to delete all rows but the first 5.
i have created this spreadsheet for windows and doors. My only problem right now is that when i put a quanity of "3" in the correct column with frame removal. it doesn't multiply it by 3.
Example:
90x90 = 56.25 sq ft (window) : 3 QTY .. with frame removal should equal $ 855 but its only adding the 1 frame removal so its $785
Frame removal, jamb ext and casing should multiple the value from the table worksheet with the QTY of windows.
I have 44 cells each in columns D & E, column D being a class of item, and E being the quantity of that class, and I want cell G42 to show the total quantity of the class. I have used =COUNTIF(D5:D49,"A") and am only showing the number of A's (A being the class) in column D. What formula can I nest in this equation to get my desired results?
I have a workbook with 20 sheets in English Language, but I must to translate in Russian. Translating has done by human translator, so translation is good. I must change phrases and words in english to russian. I can use find/replace function but doing by hand it's very tie consuming. I need VBA or macro who takes values in column A, finds it in entire worksheet and changes it to matching value in column B. Is it possible and how I can do it?
I've got two question on how to 'find' some values in a specific data file, namely:
- the '52-Week High' of the share price (highest value of the share in that specific year) - the value of the share price of the last trading day of that specific year (this isn't always 12/31/20..)
Simplified, my data looks as follows:
-In column 'A' I've a created a line of unique edentifiers (company CUSIP + year -> combined column D and E), in my set this column consists of 405 companies over 6 years of daily data -> aprox 460000 rows -In column 'B' the date is shown -> its daily trading data -In column 'C' the daily share price is shown -In column 'D' the company's CUSIP (edentifier for specific company) -In column 'E' the year
Sheet 1: 1.JPG
My final data set has to look something like this: -In column 'A' the unique edentifiers (company CUSIP + year) -In column 'B' the specific year -In column 'C' the '52-Week High' of the share price (highest value of the share in that specific year) -> red numbers from sheet 1 -In column 'D' the value of the share price of the last trading day of that specific year (this isn't always 12/31/20..) -> green numbers from sheet 1 -> off course all the empty cells in column C and D normally contain the missing values
Sheet 2: 2.JPG
The big question is how do I manage to identify the red and green colored values (and link them to 'sheet 2')?
Regarding to the '52-Week High' (red colored in the sheets) I've already tried with the following functions: - VLOOKUP: When I use this one I only get the most upper value, for example in the case of '8668102001' this would become '12' - Combined INDEX/MATCH: The same problem as with VLOOKUP - IF-function:In this case I get the max value of the entire 'C'-column, in the example of sheet 1: this would be '115'
Regarding the value of the share price of the last trading day of a specific year, I couldn't manage to come up with one.
I'm trying to do is scan down Column A (1:100 would be more than enough) and looking for 3 values, "INCOMING:", "OUTGOING:" and "WEBALERT". These will always be under Column A but the lines of text between them are different everytime. I'd like to capture the Row values of each of these values and store it in a variable which I will use in a range later. I think the way is to use a loop, but for the life of me I can't figure out how to get it to scan.
I filtered the data based on the column1 using vba. Then after that, the filtered data in column2 have repeat finance accounts. What i need to find the unique finance accounts under the column2.
Is there any methods to find the unique value under the column2?
I have some xls files. I need to find the sum of a specific column. the column heading is always TOTAL but the column it resides in changes column to column. so one file may have the text total in column H and others will have the text total in column X. how can i make a macro so it finds the text 'total' and then sums up all the values in that column underneath it and displays it at the very bottom of that column?
I have one Column (Col A) which has a list of values. In Col B I would like to filter out the values in Col A based on some criteria. For example, below I would like Col B to show all of the records in Col A where the LEFT six characters = "Active".
Col A: Inactive_Jim Active_John Active_Frank Inactive_Betty Inactive_Lucy Active_Tina Inactive_Jill Active_Tom
Col B would result in: Col B: Active_John Active_Frank Active_Tina Active_Tom
I'm sure this is elementary, but I can't seem to figure it out.
I have created (pieced) together a macro to search through a list and paste the results in another worksheet it works fine but i can't get it to loop through the list.
Sub Findall() Dim y As Long Dim starta As String Dim tr As Long, tc As Long Dim sr As Long, sc As Long Dim s As Worksheet, t As Worksheet Dim SourceCell As Range 'Setup Application. ScreenUpdating = False Set t = Sheets("Target Sheet") Set s = Sheets("Search sheet") Set SourceCell = ActiveCell Do While IsEmpty(ActiveCell) = False Counter = 1 'Get last used row in Target Sheet t.Select..........................
My code is always failing on the findnext method. I'm thinking that the findnext method fails because it loses it's cell reference when the row gets deleted.
Sub findwbs() Dim rngFind As Range Dim strFirstAddress As String
I have 2 spreadsheets, I need to collect the data onto 'figures 07' from column D on 'spreadsheet 07' by date, based on the name matching. ie cell B4 on 'figures 07' should be 166 and cell C4 should be 72. I've tried IF and LOOKUP but they don't give me the correct answer Auto Merged Post;Here is the second spreadsheet, it wouldn't let me attach both of them on my first message
1. For a file moving from one cell to the next, down the column, get the values and seach for the values in file number two.
2. If that value is found, copy a cell from file 1 to a cell of a column on the same row where the value was found on.
3. Do what was done on number two, but with a different column.
this is what i have so far...
Sub replace() ' ' Macro2 created by david '
' for the entire sheet, moving from one cell to the next down the column, changing rows ' search for the contents in another sheet, and then if that is found, ' copy the row number to a variable, and then ' copy column K from sheet 1 to column N of sheet 2, using the same variable above ' after that same, but L goes to P. ' ' Windows("file1.xls").Activate Rng = Selection.Rows.Count Dim toFind As String ActiveCell.Offset(0, 0).Select Application. ScreenUpdating = False Dim i As Integer For i = 1 To Rng Windows("file1.xls").Activate toFind = Range("A + i") Windows("file2.xls").Activate
I have a wookbook with serial numbers in column A and barcodes in column B. There are 51940 rows in total.
Is there a way I can search through column A, and for each unique value found , concatenate all of the barcodes that relate to that serial number in column C?
I have VBA code to perform some actions on data in excel file and then convert all that data into semi-colon separated CSV/text file (code below).
Now, all I want is to add VBA code in the existing macro to find a column header (say, "Application date") and then convert all the dates into YYYY-MM-DD format. The original values in this column don't have a fixed date format.
Code: Public Sub ExportToCsvFile(FName As String, _ Sep As String, SelectionOnly As Boolean, _ AppendDataOnExistingFile As Boolean) Dim WholeLine As String Dim FNum As Integer Dim RowNdx As Long Dim ColNdx As Integer
I want to do, is search column A for claim numbers that match. When I do have a matching claim number, I want to concatenate the original cells ownership field with the said matching cells ownership field (or move into a column in the same row, I can always concatenate later). Once that is complete, I want to delete the row I took the information out of.
I want to join this data in ArcGIS, but as of right now, it's not a 1-to-1 relationship, so only a relate works. That doesn't help me as I want to display claims by ownership, and this can vary per claim. Company A may have 100% on one claim, and then split another claim 50% with Company B.
This causes a double entry on the claim field in this current spreadsheet I have, which requires me to clean it up by making multiple columns of ownership vs. an additional row for shared ownership.
My problem:
Column A Column B 1235555 Company A (50%) 1235555 Company B (50%) 1235556 Company A (100%) 1235557 Company A (33%) 1235557 Company B (33%) 1235557 Company C (33%)
What I would like to see
Column A Column B Column C Column D 1235555 Company A (50%) Company B (50%) 1235556 Company A (100%) 1235557 Company A (33%) Company B (33%) Company C (33%)