Pls Help!!

MrExcelUk

New Member
Joined
Jan 13, 2002
Messages
3
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
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Answer for question A:
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,486
Messages
6,113,932
Members
448,533
Latest member
thietbibeboiwasaco

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