Got something to say or just want fewer pesky ads? Join us... 😊

[Misc] Excel Wizards - help required



Perkino

Well-known member
Dec 11, 2009
6,053
I have a simple data base, which I want to use the data is one table to populate information in the second table.

Table one is a list of values indicating the amount of goals scored. Table two shows the teams that an individual scored against, I want this to self populate based on the team name above filling the relevant cell. My ultimate aim is to compile a list of the sides that each individual scored against in a short list

1674042604901.png


Any suggestions of the excel command required to populate table two. I obviously need to use this for work related purposes and not just a football scenario
 




WASH

Well-known member
Jul 6, 2003
284
Rustington
Try this in the 2nd table in cell J2 for the Welbeck v Man Utd one: =IF(B2>0,$B$1,""). Then you can copy the formula into the other cells by dragging the formula from J2 down each column and it should work the same. Formula for K2 would be =IF(K2>0,$K$1,"") etc.
 
Last edited:












Perkino

Well-known member
Dec 11, 2009
6,053
Try this in the 2nd table in cell J2 for the Welbeck v Man Utd one: =IF(B2>0,$B$1,""). Then you can copy the formula into the other cells by dragging the formula from J2 down each column and it should work the same. Formula for K2 would be =IF(K2>0,$K$1,"") etc.
Thank you this does exactly what I wanted
 














clapham_gull

Legacy Fan
Aug 20, 2003
25,877
I think you've made the common mistake of storing your source data in presentational format (a matrix with row and column headers) then giving yourself the complication of transforming it.

The above range formula is neat, but will need to updated as you add a column for new team

A matrix also adds unnecessary noise of recording when players don't score (e.g. Undav against Man Utd) which is irrelevant to the result.

Much better to store it as a true database with the columns:

[Player], [Team], [Goals Scored]

.. ignoring entries where players don't score.

And then use Power Query to get the result you want :)
 


Perkino

Well-known member
Dec 11, 2009
6,053
I think you've made the common mistake of storing your source data in presentational format (a matrix with row and column headers) then giving yourself the complication of transforming it.

The above range formula is neat, but will need to updated as you add a column for new team

A matrix also adds unnecessary noise of recording when players don't score (e.g. Undav against Man Utd) which is irrelevant to the result.

Much better to store it as a true database with the columns:

[Player], [Team], [Goals Scored]

.. ignoring entries where players don't score.

And then use Power Query to get the result you want :)
The football data is simply a mock of two tables transferring data. I have been presented with the actual data in numerical values in the initial table but wish to produce an itemised listing of the information stored within table one. The raw data arrives from an external source electronically and I'm writing a document that will automatically pull the most relevant data and share it with the users in the most practical way.

Additional columns will be added to my data on a weekly basis but staff are loosing hours trying to analyse the data each week to have meaningful information
 


clapham_gull

Legacy Fan
Aug 20, 2003
25,877
The football data is simply a mock of two tables transferring data. I have been presented with the actual data in numerical values in the initial table but wish to produce an itemised listing of the information stored within table one. The raw data arrives from an external source electronically and I'm writing a document that will automatically pull the most relevant data and share it with the users in the most practical way.

Additional columns will be added to my data on a weekly basis but staff are loosing hours trying to analyse the data each week to have meaningful information

If I had time I could automate the whole thing for you with a script.

( ask me in a couple of weeks )
 


Albion and Premier League latest from Sky Sports


Top
Link Here