Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / June 2007

Tip: Looking for answers? Try searching our database.

Vlookup using if condition or any other way to slove problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dhir - 15 Jun 2007 20:28 GMT
Dear friends & members
I have a data on 1 single sheet in the below form (just an example) in
which 1 cell shows month, second shows name and third shows again
result my problem is that i want the total result in another form
Month    Name    Score
jan    Bob    100
jan    Tim    80
jan    Jim    90
feb    Jim    87
feb    Tim    67
feb    Bob    56
mar    Jim    87
mar    Tim    94
mar    Bob    46
apr    Bob    97
apr    Tim    59
apr    Jim    75

which is stated below
Name    Jan    feb    mar    apr    total
Bob    100    56    46    97    299
Tim    80    67    94    59    300
Jim    90    87    87    75    339

The problem is that name are not in the symetric form (name are up and
down in every month).  i want to use vlookup for picking the right
value but the thing is that I want that it should pick up right value
for right month
Any other way just tell me also....

hope you understand by the example thank you

thanks for advance
dhir
Toppers - 15 Jun 2007 20:47 GMT
Assuming data in Sheet1 and new table in sheet2, with names in column A and
months in row1:

=SUMPRODUCT(--(Sheet1!$A$2:$A$13=B$1),--(Sheet1!$B$2:$B$13=$A2),(Sheet1!$C$2:$C$13))

Copy across and down

> Dear friends & members
> I have a data on 1 single sheet in the below form (just an example) in
[quoted text clipped - 30 lines]
> thanks for advance
> dhir
krcowen@aol.com - 15 Jun 2007 21:11 GMT
dhir

Create a pivot table from the data.  Put Name in the row field, Month
in the column field, and Sum of Score in the data area.  You will have
at table that looks just as you want it.

Good luck.

Ken
Norfolk, Va

> Assuming data in Sheet1 and new table in sheet2, with names in column A and
> months in row1:
[quoted text clipped - 39 lines]
>
> - Show quoted text -
ShaneDevenshire - 16 Jun 2007 07:19 GMT
Hi,

I like the pivot table solution but if you want to use sumproduct you can
also write it:

=SUMPRODUCT(N($A$11:$A$22=F$10),N($B$11:$B$22=$E11),$C$11:$C$22)
=SUMPRODUCT(($A$11:$A$22=F$10)*($B$11:$B$22=$E11)*$C$11:$C$22)
=SUM(($A$11:$A$22=F$10)*($B$11:$B$22=$E11)*$C$11:$C$22)  array entered
Signature

Cheers,
Shane Devenshire

> dhir
>
[quoted text clipped - 50 lines]
> >
> > - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.