Thanks:  0
Likes:  0

1. Hi

Iv created a spreadsheet on the stats of the english football league for my A-level ICT project. Most of it works fine but iv had two problems which i really need help with. They are:

A:Iv made a sheet of the leagues top goal scorers which shows the players name, the team which they play for and the goals scored in different championships all sperated in to different columns. All the players names are listed in a combo boxes.

On the next sheet i have a long list of every player in the whole league (which the combo boxes are linked to) with the team which they play for in a seperate column.

Question: What i would like to do is when i select a player from the combo box is for his team to appear automaticly in the team colomn just next to it. Any idea's?

B:I have also created fixtures and results pages (each on different sheets). The fixtures page is basicly made up of two columns with combo boxes of the teams available. The results sheet looks nearly the same but without the combo boxes, i have also linked every combo box on the fixtures sheet to one of the seperate cells in the results sheet.

E.g. If i select a team from b1 combo box (fixtures sheet) it will copy that in to b1 of the results sheet.

Question:I need an =IF formula which will check the whole two columns for duplicate teams. Any idea on how to do this which will work for both columns, i tried it and it only worked for the rows.

Thanks

You would have to use a VLOOKUP, on the 2nd sheet with all the names of the players listed and the name of the team that they play for, assuming the name is on lets say column A the the team is on column B
highlight both name and team and call it
(DB.player.team)
go back to the first sheet and on the column callet team assuming it is column B write the following:
=VLOOKUP(A1,DB.player.team,2,0) and then press (Ctrl Shift Enter) because this is an arrey formula, I tried it and it works, give it a shut.

dave_219@hotmail.com

3. Why is a VLOOKUP an array formula? You shouldn't need CTRL + SHIFT + ENTER in this instance.

As for the if...

Which columns are you wanting to check?

It may be worth listing all the teams somewhere on the sheet - then doing a COUNTIF

so say

A50 = "Team1"
A51 = "Team2"
A52 = "Team3"

etc...

and the results are in columns C1:C16 and E1:E16

B50 = countif(\$c\$1:\$c\$16,A50) + countif(\$e\$1:\$e\$16,A50)

where c is home team and e away.

Then you should be able to see if any team has appeared more than once.

_________________
LASW10

[ This Message was edited by: lasw10 on 2002-10-23 10:12 ]

## User Tag List

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•