We have been having this problem for a little while, but I know that once I figure out the solution it will save me loads of time. I have a data pull of sales from a chain of grocery stores with dates on top and products on the side. Shown here: View of the data
We would like to show sales for these products between specific date ranges. These ranges are shown for Current Year and Last Year. I tried the Last Year's sales with a sumif, but sadly that is the #VALUE that you see here: Hopeful Output
I thought this equation would solve my problem, but no:
=SUMIFS(Input!B2:NB51,Input!A2:A51,Output!A2,Input!B1:NB1,">="&Output!D2,Input!B1:NB1,"<="&Output!E2)
Google Docs of the spreadsheet here: https://docs.google.com/spreadsheets/d/1rdoGKliu3suu7mfDTB7Ckj83EzeZGmhw5yZnQ7u5X94/edit?usp=sharing
Thank you so much for your help!
That happens because column array and row array are different and can't be used together in these formulas even if they have the same length.
You can use this formula at your Output F2 (close it with ctrl+shift+enter)
=SUM(INDIRECT("Input!"&ADDRESS(MATCH(A2,Input!A:A,0),MATCH(D2,Input!$1:$1,0))&":"&ADDRESS(MATCH(A2,Input!A:A,0),MATCH(E2,Input!$1:$1,0))))
Sheet Output
F2=SUMPRODUCT((Input!$A$2:$A$1000=Output!$A3)* (Input!$B$1:$ABA$1>=Output!D3)* (Input!$B$1:$ABA$1<=Output!E3)*(Input!$B$2:$ABA$1000))
Related
I have a problem I can't figure out for the life of me. It seems very straight forward but...
I have two columns as you see Qty ordered and On Stock. I would like to add a third column titled Remaining stock.
On the Stock column is the current status of inventory and it's repeated for all apples from our software. In the third column, I would like to be able to see how it's consumed and when it goes out. I tried SUMIFS and VLOOKUPs but that's all my knowledge of Excel functions.
Hope somebody can help.
SUMIF function should work:
=C2-SUMIF($A$2:A2,A2,$B$2:B2)
I'm looking for some help on trying to combine functions.
I think I need VLOOKUP & COUNTIF.
I have Sheet 1 with a list of clients, column A, I then have 12 other tabs Jan-Dec same table format on each, client listed in column C.
On sheet 1, I want to count from every month tab how many times listed (invoices sent)
Not every client in the list will appear on the month invoice tabs , others more than once.
Please see screenshot attached
Any advice would be appreciated.
Thank you
Amy
You only need CountIf. Just reference the client on Sheet 1:-
=countif(January!C3:C100, Sheet1!A3). Copy this down to reference the client on each row.
You could also consider the following for a better working and easier spreadsheet:-
-Define ranges and reference those instead
-Copy all your monthly data with the year into one sheet. Have a column for month and year then just autofilter to get the month you want - using countif to also reference the month and year if you just want a particular one in question
You'll find it easier to grown your spreadsheet and build formulae if your data is tidy and less dispersed.
Hope this helps,
Phil
I have a spreadsheet that provides monthly results for the last year. The layout is 7 columns per month, each column is the same information for each month (count and rate of various things).
I need to trigger a true/false based on both count and rate being above threshold values in any of the twelve months.
I can do this using either nested IFs or just a lot of IF statements, but was wondering if anyone has a better suggestion? I am open to formulas or VBA, whatever would be most robust.
Image of how each month is arranged
It's a little hard to tell from your spreadsheet what the layout is, but I tried to recreate it (See image below). I entered the function =IF(OR(B2>0.04,C2>2),$A$2) into cell A7 and dragged it across the spreadsheet. All the values you're looking for should be under the Month column. To prevent the function from changing its reference to the first column Name, I used absolute referencing, with dollar symbols $A$2. This way you don't have to keep changing it back to the specified column. Hope this helps.
I have a spread sheet populated with dates (Months) and revenue figures. The sheet is structured with numerous tables all containing these month-revenue pairings but they are not all in the same columns.
I need to be able to search the whole range of cells for a given month and then each time the month is found I need to look across for the revenue figure (5 cells to the right) and return the answer.
The answer returned needs to give the total figure for all instances of the search term.
VLookup won't work because there are multiple tables and they are not all lined up.
Any advice would be very gratefully received.
Thanks
You should use a VBA script for that, IMHO this is not possible to do in a formula. Here is a rough outline what you need to do:
Define an array of the month names as they appear in you sheet
Iterate this array and for each month name find all cells containing it (this might help)
Iterate all cells of each month and do your calculation based on this cell (find a cell with a certain offset or whatever)
If you cen provide a more specific description of your problem (preferably with example data/images), maybe we can give you a more specific answer.
This is possibly a tough one so forgive me while I spell out the exact circumstances and what is needed:
We have a workbook which is populated with data from our support calls (most of it is text) which is then analysed for certain criteria which are just Yes/No options (i.e. incorrect information received, late notice, etc). One of the columns is the date the support call was raised, formatted as dd/mm/yyyy. All of this data is on sheet 2.
What I have been asked to do is to have a management-friendly interface on sheet 1:
two boxes on sheet 1 labelled 'Month' and 'Year' - a manager can enter say January in Month and 2014 in Year and if they match the dd/mm/yyyy of any calls which were raised, this will then extract the whole row of values and place on sheet 3.
On sheet 1, a graph will then be populated from the data on sheet 3 to show things like how many support calls had incorrect information.
Any ideas? I've tried going through VLOOKUPS, MATCH and INDEX and can't find anything which makes any sense to me.
UPDATE
Thanks for all the input in such a short time frame. Apologies for not providing more information first time around - was on a tight deadline and had limited time to write the original post. Many thanks to both user2140261 and Scott Gall for the hints and explanations concerning pivot tables. I think that has given me enough information to head in the right direction (I ended up having to do the first graph manually, but seem to have some promising results with my first attempts with pivot tables and charts) so thank you once again.
When I have this properly worked out, I'll post some dummy information showing how it works in case anyone with a similar problem finds it useful.
May I suggest the use of a pivot table?
First break the Date Field into multiple columns on sheet two (which do not need to be visible btw).
Formula for Month: = Text(,"mmm")
Formula for Year: = Text(,"yyyy")
Then insert a pivot table on Sheet 1 using the whole data range on sheet two as the source.
Set the two new Columns (Month and Year) as Filters and the user can simply pick a month and year to view (multi select should also be available)
You will need to play around with what to put in the rows and columns and values a bit...
Keep in mind the default "Value" calculation excel will do is Count this is rarely the desired measure for the "Values" usually want SUM.. this can be changed by clicking the small down arrow for the value field and editing the field properties.
Note your graph can then be fed from the resulting pivot table.
Hope you find this helpful... if so please vote up.