![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: May 2002
Location: The Netherlands
Posts: 90
|
Hi all,
I am quite new here. So sorry if my question is too simple. I have the result of an exame in Sheet 1 Lets say: Name Mark John 6 Tom 5 Peter 4 Mary 7 In sheet 2 I have the result of a resit Lets say: Name Mark John 8 Tom 3 Peter 6 Now I want to compare and combine these data in sheet 3, so that the best results will be displayed. I will be appreciate your help |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
Is everyone doing a re-sit? What I mean is, do you want to show two sets of results for each person in Sheet 3 and add them up, or simply show them next to each other so that you can compare them? |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Welkomstgroet voor naar de Raad
Assuming you have the Data set up in each sheet in the same locations eg John, Tom etc are in the same locations then try =MAX(Sheet1:Sheet2!B3) |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: May 2002
Location: The Netherlands
Posts: 90
|
No, the data is not exactly the same.
Not all students have to do the resit. All the persons in sheet2 are also mentioned in sheet1, but not in the other way |
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
I'll assume, as example, that the data area in the first sheet is A2:B100 and in the second sheet A2:B40. In B2 in the third sheet enter and copy down: =MAX(IF(COUNTIF(Sheet1!A2:A100,A2),VLOOKUP(A2,Sheet1!A2:B100,2,0),0),IF(COUNTIF(Sheet2!A2:A40,A2),VLOOKUP(A2,Sheet1!A2:B 40,2,0),0)) A zero as result should mean that the candidate did not attend any exam. Aladin |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|