I have two sheets, in sheet2 I store all the data for each month. In sheet1 I want to do the calculaions for each month using many duffrent formula. In Sheet1 I created a drop down list that takes the months names from Sheet2. What I want to do is when I select for example January, January numbers will show and the calculations will be done for only January. Here is a capture of Sheet 2 and Sheet 1:
I found something using VLOOKUP AND INDIRECT but it assign the selectd item from select list as a sheet name.
=VLOOKUP(B6,INDIRECT(""&$C$1&"!b2:c11"),2,0)
In the list items I have the months from Sheet2..
Is their a possiable way to do that? because I am lost.
I think SUMPRODUCT() formula will meet your requirement. So, when you selct any month from dropdown list then SUMPRODUCT() formula will catch related value from sheet2 for that month and particulars. Then you can do further calculation with that value like 15% plus, minus blah blah. Here is formula to get value from sheet2 to sheet1 for selected month...
=SUMPRODUCT((Sheet2!$B$9:$E$9=$C$9)*(Sheet2!$A$10:$A$13=$A10)*(Sheet2!$B$10:$E$13))
INDEX(), MATCH() will also work in this case.
=INDEX(Sheet2!$B$10:$E$13,MATCH($A10,Sheet2!$A$10:$A$13,0),MATCH($C$9,Sheet2!$B$9:$E$9,0))
Related
I've spent hours pouring through posts using VBA, VLOOKUP, INDIRECT, etc. but haven't had much luck for this specific situation and just ended up making myself more confused.
I'm essentially doing a daily financial report. I have two worksheets. The first is "Summary" and simply gathers all the data and numbers from the day's sales and presents them neatly. The second worksheet is "Weekly" and this is where I'll input direct values into cells every day (e.g. Items Sold, Retail Shipping Cost, Total F&B Sales today).The "Weekly" worksheet has each date of the month in columns so, for instance, all the numbers for the 3rd of whatever month are input manually by myself under Column D. All the numbers for the 4th of the month are input into Column E.
The first worksheet is essentially just listing these values again more neatly or occasionally totaled up into larger sales categories which leaves me with a long column of cells in "Summary" containing formulas like "Weekly!F8" "Weekly!F10-Weekly!F3" that I have to change every day to reference the next date's numbers (e.g. Weekly!G8" "Weekly!G10-G3"). I've been using Search and Replace so far to search for "Weekly!*" and replace with "Weekly!next letter of alphabet" but I'm looking for a different solution.
Summary - https://i.imgur.com/6KqiyY8.png
Weekly - https://i.imgur.com/R8eafum.png
Is there a way to automate this so that the cell formulas change to reference the following column in another worksheet depending either on the date or a reference cell that contains an integer denoting the day of the month. I could change that one reference cell value manually and ideally have the whole column of reference formulas update as well.
You can use the OFFSET() worksheet function. For example in your first image, the highlighted cell's formula will become =+OFFSET(Weekly!A10,0,$A$1) where cell $A$1 is the reference cell that contains the day of the month.
A better approach than using OFFSET() in all your formulas is to add a column at the end of your "Weekly" worksheet and call it "Today" for example. Use the OFFSET() worksheet function in all cells of this column. Then you can reference only this column in your "Summary" sheet.
Example: In your "Weekly" worksheet use "AG" column as "Today"'s column. Then the formula of "AG10" will become =OFFSET(A10,0,$A$1) and the formula of the highlighted cell in your first image will simply become =+Weekly!AG10
Headline: I need to make a summary table that, for each row, looks to another sheet, finds the corresponding row based on a criteria (name), and counts the number of instances of a certain value ("P") across several columns.
Specifics:
I am making a summary "cover sheet" for an excel doc that summarizes information from other sheets. So, Sheet1 looks like this:
....and I want to fill in the "Attendance" column (B:B) on this sheet. I want it to do this by counting the number of P's in another sheet. Sheet2 looks like this:
(note that names are not in the same order as on Sheet1)
Desired outcome (which I hand-entered here):
IMPORTANTLY/Annoyingly: Because of some annoying rules & regulations, I'm not allowed to simply add a helper column to Sheet2 (E:E) (=countif(B2:D2,"P") that I'd then simply import in (=INDEX(Sheet2!E:E, MATCH(A2, Sheet2!A:A, 0)).
I've tried making a hybrid INDEX-COUNTIF & a hybrid COUNTIF-MATCH solution, but to no avail.
My best guess was using COUNTIFS, but when I do COUNTIFS(Sheet2!A:A, A2, Sheet2!B:E,"P")) I get an error message that says, "Array arguments to COUNTIFS are of different size."
Any help would be appreciated!
=SUMPRODUCT((Sheet2!$A$2:$A$8=A2)*(Sheet2!$B$2:$D$8="P"))
Place the above formula in Sheet1, cell B2 and copy down.
I have a spread sheet I've been working on and would like to create a summary sheet within the workbook to make it more user friendly (avoiding using VBA)
I want the user to be able to select a month (1-12) from a drop down in the sheet named "Summary" and the data to be populated from the "Actuals" sheet.
Currently I manually update the formula:
"=SUMIF(Acutals!A:A,Summary!A5,Acutals!B:B)"
and move the "Acutals!B:B" along a column when I want the next months data (January = B:B, February = C:C, March = D:D etc.).
Can I use the indirect function and sumif (to find the correct account description) to refer to the drop down in cell B1 on the Summary Sheet and link that to the correct month column on the Actuals sheet?
=SUMPRODUCT((Acutals!$B$5:$M$200)*(Acutals!$A$5:$A$200=$B5)*(Acutals!$B$3:$M$3=$B$1))
unlike SUMIFS, SUMPRODUCT can be used on multiple columns but cannot reference whole columns eg A:A.
I would like to be able to carry over the Total for each month in a pivot to the next column:for instance the total calculated for each item for Jan will then be carried over to the next column as the opening inventory for Feb. Is this possible? IF so how can it be done
It sounds like you could use some simple cell reference formulas, but your question is a bit vague. It looks like you want to use data from a pivot table of ending product inventory as the start of February's inventory.
If you're literally just trying to copy the contents of one cell (Your monthly totals in a Pivot Table) into another, try this:
In the cell you are looking to populate with data (We'll say Feb 1st is in cell B2, and January 31st is in cell A2), type the following : =A2.
This tells excel that the contents of B2 are equal to the contents of A2. You can then copy that formula throughout your sheet. You can also do this by selecting the cell you want to populate, type =, then click on the cell you want it to equal. This is useful if you're pulling data from a pivot table, even if it's on another sheet. The formula would end up looking like this
=GETPIVOTDATA("Pivot Table Column Header",Sheetname!$Cell,"Row Label","Row Item")
I have a workbook with 11 sheets for each month, and one summary sheet.
On each sheet is a list of website in column A between A2 and A13, and in column B are some values taken from those website.
The individual Month sheets look something like this:
HOWEVER, it is possible that the information may be in a different order, so I have had to use MATCH to find the row where I want to get the data from.
The summary sheet looks something like this:
I want to build a formula that will sum all the values across the 11 worksheets for each website.
I tried to use INDEX and MATCH like this:
=INDEX(January!$A$2:$B$12,MATCH($A3,January!$A$2:$A$13,0),2)
Now this works for January and copies down for all the web-sites ok, but I'd like to SUM all the worksheets without adding the formulas?
How can I do something like this across all the worksheets?
It seems a bit naff to just add a plus sign and write eleven formulas in each cell
Create a named range (eg) SHEETS containing your sheet names (in a column)
In B3 on your summary sheet:
=SUMPRODUCT(SUMIF(INDIRECT(SHEETS & "!A2:A11"), A3, INDIRECT(SHEETS & "!B2:B11")))
and fill down