Sum Numbers Based On Corresponding Names
Dec 15, 2008
Using two columns of data:
Column A with a list of first names sorted by first name, Column B with a different integer value for every cell in Column A. How do I write a formula that sums the values contained in Column B for each unique first name in Column A? The formula needs to identify where first name changes in Column A as there are different numbers of entries in Column A for each first name. (Note: I do not wish to use sub-totals, as I want to copy/paste values back into the results column and use sort to generate a new lookup table)
Have attached an example of the two columns I would like to test. Ideally I would like to see the results in a third adjacent column with the sum displayed only where a new first name appears in first column (the cells would be blank in the third column when the first name is the same as the row above).
View 8 Replies
ADVERTISEMENT
Jan 27, 2013
I am a small business owner with little experience in Excel and I have been trying to set up a worksheet that will organize my products and finances. I organize sets of various products and sell them in bulk to customers. I was trying to recreate this in Excel so I can figure out the total price for each of these sets and easily edit them.
What I've been trying to do is to take a list of the items and assign a price to each of them. This is on a sheet titled "Prices." Here's an example:
prices.jpg
On a separate sheet titled "Sets," I created lists of items included in each particular set. To easily add or change the products I used drop down menus.
sets.jpg
I would like for the sum of the price of all the items listed under each set to add up automatically in the "Total" row. For example, in cell B7 it should display the number 10. Here is a list of the following formulas I've tried:
[Code] ........
View 2 Replies
View Related
Mar 13, 2014
I have a column (A) with names, Column (B) with platoon numbers. On another sheet I have a table for each platoon and I want it to be populated with the names of each platoon indevidually. The names are alphabetically and the platoon numbers are mixed.
Column A Column B
Name Platoon
J Goodman 1
L Barns 7
H Law 1
B Aims 10
and so on....
I want all the names from platoon 1 to appear in the table for platoon 1. I have about 3000 members and 40 platoons.
View 3 Replies
View Related
Oct 22, 2007
I have a large data set (excel file), of "Names", "Phone Numbers", and i need to sort this based on the States that correspond with the Phone numbers. The states currently do not exist in the spreadsheet, so my current problem is trying to insert those states into the spreadsheet.
There are over 100 area codes in the data set, so i'll likely have to write a large "If" statement in VB to run through them all, but that shouldnt be a problem.
NAME, PHONE, STATE
Bleh, 555-555-5555, =ChkState(B2)
I've been playing around with the VB Stuff in Excel and this is what i've come up with for trying to insert the State field
Function ChkState(pVal As String) As Long
Dim AreaCode As String
Dim StateAbrv As String
AreaCode = Left(pVal, 3)
If AreaCode = "201" Then
StateAbrv = "Test201"
ElseIf AreaCode = "203" Then
StateAbrv = "Test203"
ElseIf AreaCode = "555" Then
StateAbrv = "Test555"
Else
StateAbrv = "0"
End If
MsgBox StateAbrv
End Function
I'm fairly new to this VB stuff, my main problem stems from trying to insert the "StateAbrv" back into the Cell for the spreadsheet.
View 9 Replies
View Related
Sep 8, 2013
[URL]
The output of my magic spreadsheet, developed to run the local flower show, is a column of names - each of which have won a prize valued in points. I need to determine which person in the list of names has won the most points in total, in order to award a trophy.
Actually, I also need to know how many points each individual has got because - as we all know - points make prizes. And I need to write out one prize voucher for each individual, to the total value of what they won.
Now I have been sorting each column alphabetically, then manually totting up the points, and adding the three totals together. But surely, there must be a way to do this automatically? I don't really want to have to sort the columns at all... just have the answers appear like magic once the data is in the data entry part of the sheet.
Here's an example:
1ST PRIZE
NAME
VALUE
2ND PRIZE
[Code].....
View 9 Replies
View Related
Apr 27, 2007
I have the following list of names, phone and radio numbers that somebody put together all in one cell. Formated as General with Word Wrap.is.
View 9 Replies
View Related
Aug 3, 2014
I've question in sorting: I've 2 column in one datasheet. one contain value of numbers and the other contain names of employes. i want to sort the name of the emplyes by the values that is on the first column.
Anther question is how to make it dynamically so ill not sorting it every time that the values of the first column is changing.
View 1 Replies
View Related
Nov 3, 2008
I have an excel assignment that has about 4000 orders for wood. I am suposed to find the company that ordered the most wood and of what kind. I am really at a loss for how to do this and have combed over my book quite afew times trying to figure it out. However it has little if any excel info and nor does the ** that came with it outside of how to install data analysis tools. I figure I need to find a way to get excel to combine the numbers together for orders from the same company but after trying for afew hours I have gotten no where.
View 3 Replies
View Related
Sep 1, 2009
In Cell A1 I have a name (John Doe). In cell A2 I want the formula which will be a number total. In Cells A4:A20 I have a list of names with John being in several of them. In Cells J4:J20 I have numbers. There is data in between the name and numbers that I don't need.
So, I want A2 to search A4:A20 and everytime it sees John Doe to add the numbers that are 9 cells over (J4:J20). This is basically to show how many mistakes John has made (total). I tried =Sumproduct((A4:A20=A1), (J4:J20,1,0)). I know I am missing something or not on the right track.
View 2 Replies
View Related
Aug 30, 2013
I have a graph with something like 40 series that are being plotted. For one, I create non-standard data labels using VBA. In that code, I refer to ChartObjects(1).Chart.SeriesCollection(34). At some point I deleted a series that preceded it in the "select data" list and the code crashed. Took a lot of digging to learn that SeriesCollection(34) had become SeriesCollection(33).
To avoid this in the future, is there a way to refer to the SeriesCollection by a unique name rather than a sequential number?
View 4 Replies
View Related
Apr 19, 2007
I have this macro (below) which produces the the date on a file name when I update it every month. However, I would like it to show a different version of the date and in a different location.
At present it produces the following (example):
Ice_Cream_Report_Month_07-02
What I would like is:
Ice_Cream_Report_Month_Feb07 (or even Feb-07 would be fine)
Macro:
Option Explicit
Private Sub ComboBox2_Change()
End Sub
Private Sub ComboBox3_Change()
End Sub
View 9 Replies
View Related
Aug 15, 2007
I need to know how I can delete NUMBERS in front of the names....
I.E.
Colume B
12Smith
12John
13Chris
152Matt
1111Joe
12569Joe
1234Smith
I need to delete the numbers in front of the names - i have about 26thousand records like this and need to know how i can delete them.
View 9 Replies
View Related
Oct 14, 2009
I have tried looking for similar questions in the forum and couldn't find them. If you know of any, please let me know. My problem is that in one column I have peoples names that are repeated. I need to average numbers that are in the same row as their name. So for example:
NameDateworkPagesRevisions Revisions/PageRH9/16/09Sandy land39320.82Bryce9/18/09Price mixed use1111030.93Bryan F.9/21/09Letter (rates)6325.33Bryan F.9/21/09Bountiful Nursery64871.36Randy9/22/09SJ Subdivision58220.38RH9/25/09Park City office Condos76881.16Bryce9/25/09Evanston Motel62210.34
this list is continually added upon monthly. So for Bryce I would be able to pull 111 and 62 and have an average of 87.5 from the pages column. But if I were to add another row farther down with his name, it would change the average.
I was thinking that a repeated vlookup would work if it stopped when there was a blank in the cell, but I am unsure on how to do this. If you have any questions, let me know. I was hoping to have it in a formula in a cell above the table.
View 9 Replies
View Related
Apr 16, 2014
I have repeating 7 names in A column.(Like a name group)
Each group names repeating after a blank(empty) row.
I want to write to B column for each repeating names from 1 to 7 as number value.
View 2 Replies
View Related
Apr 22, 2014
I've been working with ledgers to analyze companies financials in detail mostly using pivot tables and charts.
I usually get the data in a format that has the account name and number as a title on top and then each entry for this account under the title. In order to get my pivots working I need to copy the account name and number to each row until the next title.
Here is a picture to understand what I mean: Makrokyssäri.png
So is there a formula or a macro that could avoid doing the copying manually?
View 3 Replies
View Related
Sep 21, 2012
I have a phone list set up as LastName, FirstName PhNum all in a single column. The problem is, some last names have a space, some phone numbers are in the xxx-xxx-xxxx format while others are just an extension like xxxxx.
Example:
Smith, John 519-123-4567
Van Smit, Joe 12345
What can I use in a formula to extract the numbers so that I can end up with 2 columns, one with names, the other with numbers.
View 6 Replies
View Related
Jan 21, 2014
I have created a chart but for some reason rather than the names appearing there are numbers. I did the chart successfully and then removed the data so that I could input another team's results and this happened.
View 3 Replies
View Related
Mar 28, 2014
I've got a long list of inventory items. The naming convention of these items is not totally consistent. Below is a representative sample of all the different kinds of names:
1800Brandacom (CLIENTA) 25.00
1800Brandacom 25.00
brandb (Variable)
BrandC-100.00-PL-ALG
brandd variable
[Code] .....
I need to separate out the name of the brand and the number (or if the item says "variable", use a 1 for the number) into two columns, so that the results would be:
1800Brandacom
1800Brandacom
brandb
BrandC
brandd
[Code] ....
and:
25.00
25.00
1.00
100.00
1.00
[Code] ....
For the numbers, I have used this array formula to search for the first letter in the string, and then search for the first number following the first letter, and then return all numbers up to "." Unfortunately this does not work consistently when there is a number in the middle of the brand name or the item has no number.
[Code] ....
For the names I have used this formula, which fails when the name has a "-" in it.
[Code] .....
Any way to extract the names and numbers which would work consistently across all the items!
View 4 Replies
View Related
May 21, 2013
I need a macro to create a hyperlink i.e....... I have an excel sheet with numbers in column A.....I have files in a folder that matches the numbers in column A....
How would I create a macro to create a hyperlink from the numbers in column A to the "matching" file names in a folder?
View 3 Replies
View Related
Feb 27, 2014
I'm going to be using a spreadsheet to keep track of where different people are at. So if Person 1 is in Room 3, I will stick a 3 in the box next to their name and then can look at the spreadsheet whenever I need and see what room they are in. When I'm deciding what room to put a person in, though, I need to be able to quickly glance at a list of Room #'s and see what one's are still available. So I have a bank of Room #'s in the spreadsheet....1,2,3, etc.
What I'd like, is some way to set this up so that when I put, for example, "3" in the cell next to "Person 1" the spreadsheet automatically removes "3" from the bank of available Room #'s and when I delete the "3" because the person has left, it adds "3" back to the bank of available Rooms.
View 7 Replies
View Related
Mar 18, 2013
I've read a lot of tutorials on how to use pivot tables, but found them either too basic, or too advanced, and never finding any example of what I am looking to do.
I have a database, column A holds names, and column B their phone numbers. I'd like to generate a list of unique names and their associated telephone numbers. I figure I can use a pivot table to do this.
But I do not quite understand how to format the pivot table to put the name in one column and the phone number in the next. I will use this pivot table as a vlookup range. I assume I can do this.
View 7 Replies
View Related
Oct 12, 2010
I have a list of numbers in sequential order. There are numbers missing. Is there a way to have Excel insert rows for the numbers that are missing in the series.
example:
1
2
3
4
8
9
becomes
1
2
3
4
8
9
View 7 Replies
View Related
Jul 24, 2014
i have one Column that is 41 rows and contains the words Yes Or No (N2:N41). I have second Coloumn with names in every cell (A2:A41).
Now i need to get in a second sheet all the names that are on the same line as Yes.
View 8 Replies
View Related
Feb 12, 2009
See the attached spreadsheet. I have people's names in cells A2:A5. These names have a rank value in cells B2:B5. What I would like to do is create a formula that sorts/orders the names in cells A2:A5 according to the rank in cells B2:B5. The results I would like to achieve are shown in A8:A11. I am aware of the "Sort" function in the "Data" drop down menu, but need to leave cells A1:B5 as they are.
View 2 Replies
View Related
Mar 18, 2008
I have a huge workbook with lots of sheets. I'm an Instructor and I use the workbook for all my students records. The first sheet has all the students names. The second sheet has a statment that only females have to sign. On the first sheet column A is "First Name", column B is "Middle Initial", column C is "Last Name" and column D is "gender".
I would like to be able to have all the Female names automatically inserted on the second sheet into the "name" cell. The concatenate formula will probably be necessary as the names will have to be put together (Last name, MI First Name). I have a maximum of 12 students so I have created 12 individual statments so that if there are 12 females their names will be inserted into each name cell for each statement. I can send or post the entire workbook if necessary.
View 10 Replies
View Related
Apr 15, 2014
Reference the attached excel audit example. Column F highlighted in Yellow is finding the difference between "Authorized Post Allow" D9 "Post Allowance" B9 . The Column location of the two Columns changes on each audit. This means I have to manually fix the formula in Column F every time. Is there a formula that would find the difference between these two columns based on their names "Post Allowance" and "Authorized Post Allow" preventing me from manully fixing the formula.
View 2 Replies
View Related
Oct 19, 2009
I need the names of students from Summative tab in the correct box based on how many question they got correct. (Q 27-32, (0-1, below, 2-3, Average, 4-5, Above Average, 6, Excellent Performance. )
I have attached a file.
View 8 Replies
View Related
Feb 4, 2010
How can I sum values with names based on a number prefix? For example, in the attached sheet, how can i sum all values that have the prefix 4.10.02.xxxx?
View 2 Replies
View Related
Jun 9, 2009
I would really appreciate if someone could help me with the following problem:
I wrote this code, but for some reason it doesn't work. I am completely new to VBA and have no idea what went wrong:
View 14 Replies
View Related
Aug 21, 2009
Code:.....
The names are not static and can be moved, meaning that John can be 1, 2, 3, or 4 (all depending on how the name is chosen). I want to find the average on where John ranks. In this instance, he would be 2 [(1+3+2)/3].
My question is - How can I create a formula that will look for where John appears in the column (B1) and call the previous cell (A1)? This formula needs to be repeated on each column, added and averaged.
View 5 Replies
View Related