Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Vlookup using if condition or any other way to slove problem

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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Vlookup using if condition or any other way to slove problem

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

"dhir" wrote:

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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 109
Default Vlookup using if condition or any other way to slove problem

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


On Jun 15, 3:47 pm, Toppers wrote:
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



"dhir" wrote:
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- Hide quoted text -


- Show quoted text -



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Vlookup using if condition or any other way to slove problem

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
--
Cheers,
Shane Devenshire


" wrote:

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


On Jun 15, 3:47 pm, Toppers wrote:
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



"dhir" wrote:
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- Hide quoted text -


- Show quoted text -




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
two condition for vlookup? shital shah Excel Worksheet Functions 4 August 2nd 06 10:11 PM
2 condition vlookup AZExcelNewbie Excel Discussion (Misc queries) 1 February 17th 06 10:02 PM
VLOOKUP used only when IF condition is met Bradley Excel Worksheet Functions 3 November 22nd 05 05:32 PM
Vlookup using a range condition John Excel Worksheet Functions 4 August 26th 05 08:40 PM
vlookup in two condition val via OfficeKB.com Excel Discussion (Misc queries) 1 March 18th 05 08:12 AM


All times are GMT +1. The time now is 12:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"