Excel question

Please post any questions regarding the program here.

Moderator: 2020vision

Excel question

Postby crocogotter » Wed Aug 31, 2016 8:05 am

This is not specifically to do with BA, but for my analysis of results, so hopefully it's OK to ask here. I'm collating results from various worksheets within a workbook into a mastersheet. Each of the worksheets that I'm extracting data from is simply named by a number (1, 2, 3 etc).

Is there a way to generate the worksheet name so I can copy formula on the mastersheet rather than having to manually adjust each formula for each individual worksheet?

I realise this might not be very clear, so I'l give an example.

As I say, each worksheet is called 1, 2, 3 and so on. I want to extract data from, say, cell A1 in each worksheet for the mastersheet. I have a column of numbers in column A of the mastersheet, starting at 1. Column B is the extracted data. Thus, the formula for cell B1 is ='1'!A1 (cell A1 on mastersheet is 1), and for B2 is ='2'!A1 (cell A2 is 2), B3 is ='3'!A1 (cell A3 is 3) and so on. So effectively I want to generate the worksheet name in a formula using the numbers in column A to extract the data from the relevant worksheet.

I hope this makes sense.

If this can be done I'm sure it's quite straighforward but so far it's eluding me and my googling abilities.
crocogotter
 
Posts: 57
Joined: Fri Apr 08, 2011 2:27 pm

Re: Excel question

Postby Deestar » Wed Aug 31, 2016 11:13 am

I think this formula in col B your Mastersheet should work if I've read your question correctly. Where the first A1 gives the name of the worksheets. This would obviously drag down and become a2, a3....etc

=INDIRECT(CONCATENATE("'",A1,"'", "!A1"))

It will only give the value in A1 in each worksheet 1,2,3 etc.
Deestar
 
Posts: 267
Joined: Sun Apr 26, 2015 8:17 am

Re: Excel question

Postby bolpx001 » Wed Aug 31, 2016 11:18 am

Select the required sheets by pressing ctrl and clicking the required sheet names
Enter your formula on the first sheet. And it should be in all selected sheets
I hope it helps Paul
bolpx001
 
Posts: 297
Joined: Sat Nov 19, 2005 4:30 am
Location: Dublin, Ireland

Re: Excel question

Postby crocogotter » Wed Aug 31, 2016 8:48 pm

Thanks Deestar, that's exactly what I wanted.
crocogotter
 
Posts: 57
Joined: Fri Apr 08, 2011 2:27 pm

Re: Excel question

Postby bolpx001 » Thu Sep 01, 2016 10:43 am

Sorry Folks, totally misread the question :(
bolpx001
 
Posts: 297
Joined: Sat Nov 19, 2005 4:30 am
Location: Dublin, Ireland


Return to Help

Who is online

Users browsing this forum: Bing [Bot] and 51 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.

cron