Excel: How to pick a sheet based on cell values - excel-formula

I've got an excel workbook with a number of sheets calculating statistics and a single summary sheet.
On the summary sheet I'd like it to name other sheets that fit certain criteria. So, for example: Let's say the sheets are all named after football teams and in each one there is a cell that calculates "Average Points Per Game". How could I have a cell on the summary sheet pick the team with the highest Average Points Per Game (APPG) and name it as well as its APPG?
Thank you in advance. I've used Excel quite a bit but only for very simple stuff - this is my first time working across multiple sheets in this way.

Related

Sum across multiple sheets with criteria

I am using the formula below in my 'ALL SALES' sheet to consolidate sales from multiple sheets for a corresponding month in each sheet ... So E618 in each tab would be the sales for say Mar-22 and so on for 60 months. This has been working fine as follows
SUM(Intl_Schedules_Start:Intl_Schedules_End!E618)
The sheets all had Mar-22 through Feb-26 in E617 onward so summing it was simple with the above formula..
Now my sheets are more dynamic in that E617 could have Mar-23 onwards for the other 59 months in row 617 in which case when I add the cells E617 from each sheet together I am getting the wrong result as it is adding E618 from one tab which has Mar-22 in E617 and the other tab's E617 is now Mar-23 which of course is incorrect. I have been searching a way to conduct the same calculation but incorporating one criteria of matching the month value in 'ALL SALES' month column (say Mar-22) with the month in each sheets' E617 which could be different... So to summaries.. IN ALL SALES under mar-22 I need to add all the corresponding values in each tab where the month in cell C217 match
There are examples I have found on the web which require a separate list of all the tabs that are being summed but as my sheets could be moved and new ones with different names added it makes for a very time consuming task....
I anyone able to assist me in this?
I hope the image below gives a better idea
TIA
Based on the formula you give within the comments:
=SUM(FILTERXML("<a><b>"&TEXTJOIN("</b><b>",0,Intl_Schedules_Start:Intl_Schedules_End!AR1,Intl_Schedules_Start:Intl_Schedules_End!E618)&"</b></a>","//b[preceding::*["&SHEETS(Intl_Schedules_Start:Intl_Schedules_End!E618)&"]="""&C2&"""]"))
This could be abbreviated using LET if desired.

To lookup multiple conditions in different sheet and show all result in column by column- possible to do it with excel formula or vba is required?

need some help on my excel production report.
I want to Lookup for the daily unique ID, gram and pieces from Sheet 1 into Sheet 2.
The daily unique ID consists of up to 5 categories.
Each day, there could be up to a maximum of 3 unique ID produced with each one having different categories (some have 2 same categories with different grams and pieces. It need to be shown in a separate column in Sheet 2), grams and pieces.
I came out with an excel formula but it only works IF there is only one daily unique ID per day. If there is more than one unique ID, this formula fails as it only captures the first one.
Please see my formula below
I2:I100 is the gram in Sheet 1
E2:E100 is the "unique code-category" in Sheet 1
D11 is the unique code in Sheet 2
P11 is the type of categories
{=IFERROR(INDEX('A'!$I$2:$I$100,SMALL(IF(($D$11&"-"&$P$11)='A'!$E$2:$E$100,MATCH(ROW('A'!$E$2:$E$100),ROW('A'!$E$2:$E$100)),""),ROWS($A$1:$A1))),"")}
Is there a way I could capture everything?
Can I do it with excel formula or a VBA is required?
I have tried many different formulas but nothing came out right, please help :(
Please let me know if my explanation isn't clear. Thanks.
Sheet 1
Sheet 2 (Final Report)

Seamless way to link time series data from an increasing number of spreadsheets in excel

I have a task that involves plotting data over time from a set of spreadsheets, where the number of spreadsheets increases by 1 each month. I'm wondering what the easiest, most user friendly way to do this for novice excel users.
Say I have workbooks in a directory:
xjan19.xlsx
xfeb19.xlsx
xmar19.xlsx
xapr19.xlsx
Each of these workbooks thankfully has the same sheet structure. suppose I need to extract up to 20 business days of data in a column from sheet "profit" starting from say cell B10 (the exact number of rows in this cell selection isn't fixed for each month).
I need to pull the the data from each of the above four workbooks into a "master.xlsx" workbook (say sheet "profitovertime") and merge them into a long time series of daily profit numbers, and then perform analysis on them (charts, etc).
I then need to make it easy for the user to insert the data for xmay19.xlsx, etc and so on (from sheet "profit" in xmay19.xlsx, starting in B10).
What is the easiest way to do this? I've just researched creating Excel connections from Data > Connections in "master.xlsx" and passing in tables in "master.xlsx", but this means I have a new sheet in "master.xlsx" for each month and then update the cells manually in the "profitovertime" sheet in "master.xlsx".
Is there a more seamless way to do this that offers more automation?
I imagine doing something like passing in a string giving the absolute file path of each month in a column of cells in some sheet in "master.xlsx", and then everything automatically updates in the master.xlsx's "profitovertime" sheet after only inputting the path to this new file.

Excel - How to populate calendar on sheet 1, from data on sheet 2

I'm having quite a bit of difficulty building out this calendar to pull data from sheet 2, and populate to the correct cells on sheet 1. To give some clarity into the context of what this is. Sheet 1 is an annual calendar from a template found online. Sheet 2 contains the names and dates of that client's last meeting. This calendar would in effect, go through all the client names and dates, and enter the client names in the corresponding dates on the 1st page. for each "day" on the calendar is comprised of 3 cells, the #, top cell for any holidays if applicable, and the bottom cell for the client names.
I've toyed around with adjusting sheet 1 so that all of the "day" cells actually have the date in it, then using index-match to look up the corresponding clients. The biggest issue I'm running into is that it's possible for multiple clients to occur on the same day. How can I take ALL client name results for a particular day, and then display them all in the same corresponding cell in sheet 1?
Sorry for the novel, just looking to be thorough and not waste anyone's time. Thank you all!
Link to the working version of the file

calculate using google spreadsheet, using what is in a column to get a value from another sheet

I need to use a character-based field to obtain a number from a different sheet to be used in a sum with a column from the first sheet.
I have a sheet in google spreadsheet that has the columns:
Vets, number of males, and cost.
I need to have a SUM that will multiply Vets * number of males to provide cost.
BUT the info in vets will be character-based - i.e. Jones, for vet's names - and in another sheet I have a list of vets with the next column having a cost - i.e. 36.77.
I then want to take what is in the cost column of the 2nd sheet and multiply it with the column number of males in the first sheet to give me cost in the first sheet.
Any ideas?!
This FAQ explains how to reference cells from other sheets:
Within a single spreadsheet, you can replicate data and copy it from one sheet to another by entering the sheet name and an exclamation mark before the cell being copied. Here are some examples:
=Sheet1!A1
='Sheet number two'!B4
Is this example something like what you're looking for?

Resources