How to Make a Summary Table combine data from Multiple sheets ? - excel

Dears,
I Would like to ask you how to transferred values automatically from multiple tables in multiple sheets, where this value will be under the same column's name
For Example, I designed a worksheets of month sales Report and create 4 sheets and named it " week 1, Week 2, Week 3,Week 4" this sheet have the same table columns with different contents based the sales information of each week, so in separate sheet I would like to make a summary to some of this columns from each sheet to combine the data in one table with specific columns
Please, Anyone Help ? I'd Be Thankful

Your data architecture is the wrong way around.
You have several sheets for data entry and you want to consolidate them into one report. That will always be hard work. Pivot tables won't work, formula solutions will be almost impossible, so you will need VBA and even then you probably won't be able to avoid constant manual adjustments.
Unless...
... you change the data architecture and enter all data into one sheet, with a column for date (or week number or some such). Then you can quickly and easily create a pivot table and report on all kinds of aspects of the data, filter by week or other date ranges. You don't need to know anything about VBA or even formulas.
Work with Excel, not against it.

In my opinion, it is nearly doable - just use some tweaks.
What you can do is input the sheet names into one column, say column A: Week 1, Week 2, etc. and then you can use the INDIRECT() function to turn the strings/values in column A (Week 1, week 2, etc.) into a variable.
My source: https://www.xlsoffice.com/excel-functions/lookup-and-reference-functions/convert-text-string-to-valid-reference-in-excel-using-indirect-function/
Since OP said the tables in each sheet are all the same, you'd easily be able to ctrl+d down the same cell value, but for different sheet names.
For example, if your values were in cell B2 in sheet "Week 1" and sheet "Week 2":
Column A Column B
Week 1 =INDIRECT(A1&"!$B$2")
Week 2 =INDIRECT(A2&"!$B$2")

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.

Adding values to different cells depending on conditions - Excel

I am not very good with excel formulas, and I would need some help with a process I want to implement:
Simplifying things, I have an excel sheet (sheet n°1) with rows like this:
Company name | Price | Date
On other excel sheet (sheet n°2) I have one row for every company, and in each column there are all 12 months. I would need a formula so every time I add a row in the first sheet, the price I add is automatically added to the corresponding company row and in the corresponding month (based on the date) on sheet 2
I am really lost here, I know how to apply simple formulas, but not this, is there a way to add each value to a different cell depending on some conditions?
I forgot to add, that I would need to sum this values in sheet 2, so every time I add a new value, it is summed to the actual value of the corresponding cell.
I hope my english is not to bad, and thank you in advance!! :)
Use SUMIFS()
=SUMIFS($Q:$Q,$P:$P,$A2,$R:$R,">="&EOMONTH(B$1,-1)+1,$R:$R,"<"&EOMONTH(B$1,0)+1)
One caveat to this the month headers must be an actual date in the month desired. This can be formatted any way you want to display. My cells all contain the 1st of each month as their true dates.

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)

Sum values in different rows if they match

I need some help regarding an issue that I was not able to solve. I tried to figure it out but without reaching my goal. This is what I have:
In sheet 1 I have estimated active customers for a period of time, where columns are months and rows are departments/states:
Sheet 1
Then, in sheet 2, I'm forecasting sales and need excel to return values from sheet 1 depending on which month we are kicking-off for each department:
Sheet 2
Of course, the kick-off month may vary for each department and values from sheet 1 should accommodate according to the selected month on column B in sheet 2.
And within C2:I4 I have used this formula:
=IFERROR(IF(C$1>=$B2,INDEX(Sheet1!$B$2:$F$4,MATCH($A2,Sheet1!$A$2:$A$4,0),MONTH(C$1)-MONTH($B2)+1),""),"")
The formula above actually works great when departments are not repeated in sheet 1 but, what would happen if departments are repeated (as shown in sheet 1) and I have to sum values from the same department and show the result on each cell in sheet 2?
I look forward to your kind help!
Thanks!
Try using SUMIF like this:
=IFERROR(IF(C$1>=$B2,SUMIF(Sheet1!$A$2:$A$4,$A2,INDEX(Sheet1!$B$2:$F$4,0,MONTH(C$1)-MONTH($B2)+1)),""),"")
Please try this formula, designed for your Sheet2!C2 cell.
=IFERROR(SUMIF(INDEX(Rodrigo,,1),$A2,INDEX(Rodrigo,,MONTH(C$1)-MONTH($B2)+1)),"")
In order for this formula to work you should declare a named range comprising of your range Sheet1!A2:F4. My formula calls the range Rodrigo. If you choose another name please change the name in the formula accordingly.
You can exclude zero results by adding a further IF condition to the formula. I would prefer to do that via cell formatting, like 0;0;; where the third semi-colon determines that a zero will not be shown. You can also suppress display of zeros for the entire sheet in the worksheet options.

excel - advanced vlookup or other formula?

I have a question regarding excel and I am looking for a formula that can help me transport my data from one sheet to the other. I have some experience with excel, however I am not a pro at it, so I apologize if this is a very trivial question but would also be happy since that would mean it probably has a very trivial answer! Unfortunately I do not have enough reputation points yet to post images, but I will try to explain it as clearly as possible.
Basically I am creating an excel template and the goal is to have 2 sheets in excel.
In the first sheet I have a column with following input in rows A1 - A3: Sales Region,
Country, Account ID's.
Above is the example of column A; from column B --> x; I will put e.g.
Americas, US and as many account numbers as there are in that specific country.
However on the second sheet it gets a bit complicated. My goal is that all the account numbers from sheet 1 irrespective of their sales region and country (which also means irrespective of their column) will automatically be listed on the second sheet.
The second sheet will be organized in the following way:
From column A - C; sales region, country and account ID.; from column D - x financial information for each account.
As a first step I want all the different account ID's from the different columns on the first sheet to be listed under column C (account ID's) on the seconds sheet.
As a second step I want column A - B to be automatically filled out according to account number by accessing the information in which column and thus sales region and country the account is in on sheet one.
I don't think a simple vlookup would do the job, especially for step 1, since I want the account ID's from many different columns and rows in sheet 1 to be listed in just one column....
hope it is clear enough! Would appreciate any help! :) thanks in advance!
The first step take all of column A and copy it to the 2nd sheet on column C.
Select data ribbon and select remove duplicates.
For column A insert vlookup for column C for all the data in 1st sheet
For column B insert vlookup for column B for all the data in 1st sheet
Those value will work well only if an ID has one valid Region and country.
Now just use custom sort to sort it in the way you desire.

Resources