Search multiple cells to display data

leerobbo

New Member
Joined
May 13, 2011
Messages
4
Alright

Sorry about the thread title it's about as much sense as I could make it sound in a short space!

Basically the data I am using is to do with the football season 2009/2010 and I am trying to create an H2H page where it will show how each team fared against each other so an example would be Fulham v Hull. What the formula would have to do is find that specific fixture then return the scoreline into the cell.

The cell that will display the scoreline is on a different sheet to the cells that have the information. The scoreline is also seperated onto two different cells so if that scoreline was 3-0 then it would be 3 in one column and 0 in another.

=IF(AND(MatchInfo!D218= A3,MatchInfo!E218=B1),MatchInfo!I218&"-"&MatchInfo!J218,"")

The above would return what I was looking for except thats because I've went out and found what cells I was looking for just to see if that formula would work. Swapping d218 for d2:d381 and so on declares the formula as wrong therefore nothing displays.

Column D in matchinfo is the home team. Column E is the away team. Column I is the home team score and column J is the away team score.

I am using Excel 2007 as well.

Thanks for any help and hopefully I've made sense explaining the problem!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi,

Can you post the layout of your "results" sheet - it is poss to do but there anumber of different ways depending on what you are actually tryiing to achieve:)

You will find that you always get a better response if you include before and after layout.

Regards,
Ian
 
Upvote 0
Welcome to the MrExcel board!

See if this helps.

Excel Workbook
DEFGHIJ
1Home TeamAway TeamHome ScoreAway Score
2Team 1Team 221
3Team 3Team 410
4Team 5Team 600
5Team 7Team 823
6Team 3Team 123
7Team 5Team 212
matchinfo



Formula in C2 below copied down.

Excel Workbook
ABC
1Home TeamAway TeamScore
2Team 3Team 12-3
3Team 5Team 60-0
Lookup Scores
 
Upvote 0
The layout of the results sheet is something like

A2-A21 Team Names
B1-U1 Team Names

So the likes of A1, B2, C3, D4 etc are blank due to them having no teams related or the same teams related i.e. arsenal v arsenal.
 
Upvote 0
Sorry for the post quickly after but it seems as if there has made a breakthrough built on what Peter_SSs posted earlier.

=SUMIFS(MatchInfo!$I$2:$I$381,MatchInfo!$D$2:$D$381,$B$1,MatchInfo!$E$2:$E$381,A3)&"-"&SUMIFS(MatchInfo!$J$2:$J$381,MatchInfo!$E$2:$E$381,A3,MatchInfo!$D$2:$D$381,$B$1)

The formula above has done the trick so thanks for all your help!
 
Upvote 0
Deleted - all wrong
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,144
Members
452,891
Latest member
JUSTOUTOFMYREACH

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