![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Location: Faaborg , Denmark
Posts: 3
|
I,ve a worksheet, where names represent values. it have to show the names, but i, ve would like to use the names to sum up values... Does anybody knows how to ??
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Hellas
Posts: 553
|
hello there
Give an example of your data please, and give more details .
__________________
Best Regards Andreas
|
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Location: Faaborg , Denmark
Posts: 3
|
i have cells with names of several custumers in a time management plan. each custumer represent a value, a sale. to detemine the sum of the sale i now have to manual change every sum if there are any changes.
It would be great just to drag the cell to another time period, and then this weeks sale updated itself automatic. [ This Message was edited by: maskinhenrik on 2002-05-21 04:49 ] |
|
|
|
|
|
#4 | |
|
Board Regular
Join Date: Apr 2002
Location: Trussville, AL
Posts: 134
|
Quote:
First, use a vlookup table to substitute your names for values. For instance, Fred=1, Ginger=2, Rocky=3, Bulwinkle=4. What does Fred and Ginger equal? Put the table (above) in the range X1:Y4. A1 equals Fred A2 equals Ginger B1 equals =vlookup(A1,$X$1:$Y$4,2) B2 equals =vlookup(A2,$X$1:$Y$4,2) Now you can add the B column. ------------------------------------- There's probably a way to do this using a CSE (CTRL-Shift-Enter) formula. Otherwise known as an array formula. It's too early in the morning for me. ------------------------------------- I'll alter this to meet your latest post. Philip |
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Hellas
Posts: 553
|
hello there
I think you can use pivot table, for this it is much easier than formulas, and in addition you can get sums for periods and by customer.
__________________
Best Regards Andreas
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Apr 2002
Location: Trussville, AL
Posts: 134
|
OK. You could also use a DSUM formula. This would require having a table of numbers such that each customer has a name in a column. Another column in the table would have the week. A third column would have the sale.
To setup a DSUM formula you need to have a title for each column of the table. Here we would use Name, Week, and Sale. Then we will set a criteria range for the search. To see how many sales you have to Fred create a range in U1:V2. U1=Name V1=Week U2=Fred V2=1 V2 is the week. Here we are searching for all sales to Fred for week 1. =Dsum(X1:Z100,3,U1:V2) The formula will search the data table X1:Z100 and add up column 3 for the criteria found in U1:V2) So, for every row that has a name of Fred and a Week of 1 it will add up the third column. DSUM are useful, but if the search criteria is deleted it may add up the entire column of values. Philip |
|
|
|
|
|
#7 |
|
New Member
Join Date: May 2002
Location: Faaborg , Denmark
Posts: 3
|
Thanks for all your help, it doesnt seem to work, do yuo have more suggestions?
Ill, see your answers tomorrow, i have to go home now Thanks |
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Apr 2002
Location: Trussville, AL
Posts: 134
|
Maybe if you give me some more details. How many names are involved? If only a few there might be some other options. If several hundred or more I'll try to explain how to set up the table better.
Philip |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|