Search/update data

noori

Board Regular
Joined
Feb 23, 2011
Messages
188
Weeks---Names-----Amount earned
1-------Peter-------100
2-------Jone--------75
3-------William------150
4-------Jone--------25
5-------Peter-------50
1-------William------100
2-------Peter-------150
3-------Jone--------75
4-------Peter-------100
5-------Jone--------50
1-------William------125
2-------Jone--------100
3-------William------150
4-------Jone--------200
5-------Peter-------100

Hello,
I want when I chose the name in the cell name: it shows the compelete history of the whole picture/detial of that person(from the data table shown above.) like which weeks he worked / how much salary he got that week. For example: Cell week and salary. (If week 5 is write two times it add and show one amount).

Second thing is if I write in name(which is list of three names:peter, Jone, William-[data validation-list]) like if I write p then it show peter and if i press W shows william, if i press J then come up jone.

Name-----week-------Salary
Peter-------1--------100
------------2--------150
------------4--------100
------------5--------150
Please any suggestion how can I do. Will be grateful to you.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
After FIRST Sorting your Table 1) names and 2)Weeks
With the Subtotal Feature I produced the following...
Excel Workbook
ABC
1WeeksNamesAmount earned
42 Total175
63 Total75
94 Total225
115 Total50
12Jone Total525
141 Total100
162 Total150
184 Total100
215 Total150
22Peter Total500
251 Total225
283 Total300
29William Total525
30Grand Total1550
Sheet1
Excel 2007
Cell Formulas
RangeFormula
C4=SUBTOTAL(9,C2:C3)
C6=SUBTOTAL(9,C5:C5)
C9=SUBTOTAL(9,C7:C8)
C11=SUBTOTAL(9,C10:C10)
C12=SUBTOTAL(9,C2:C10)
C14=SUBTOTAL(9,C13:C13)
C16=SUBTOTAL(9,C15:C15)
C18=SUBTOTAL(9,C17:C17)
C21=SUBTOTAL(9,C19:C20)
C22=SUBTOTAL(9,C13:C20)
C25=SUBTOTAL(9,C23:C24)
C28=SUBTOTAL(9,C26:C27)
C29=SUBTOTAL(9,C23:C27)
C30=SUBTOTAL(9,C2:C27)
 
Upvote 0
Excel Workbook
ABCDEFG
1WeeksNamesAmount earnedNameweekSalary
21Peter100Select from DropDown -->>>Peter1100
32Jone752150
43William15030
54Jone254100
65Peter505150
71William100500
82Peter150
93Jone75
104Peter100
115Jone50
121William125
132Jone100
143William150
154Jone200
165Peter100
Sheet1
Excel 2007
Cell Formulas
RangeFormula
G2=SUMPRODUCT(--($B$2:$B$16=E$2),--($A$2:$A$16=F2),C$2:C$16)
G3=SUMPRODUCT(--($B$2:$B$16=E$2),--($A$2:$A$16=F3),C$2:C$16)
G4=SUMPRODUCT(--($B$2:$B$16=E$2),--($A$2:$A$16=F4),C$2:C$16)
G5=SUMPRODUCT(--($B$2:$B$16=E$2),--($A$2:$A$16=F5),C$2:C$16)
G6=SUMPRODUCT(--($B$2:$B$16=E$2),--($A$2:$A$16=F6),C$2:C$16)
G7=SUM(G2:G6)
 
Upvote 0
Work like a Magic:eeek:

Thank you so much sir for your great help. Can we do this with macro instead formula.

And is it possible when write a word in data validation list it search and show close match.
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,152
Members
452,891
Latest member
JUSTOUTOFMYREACH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top