Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Hi,
I would like to use the following formula over 30+ worksheets in the same workbook but I do not want to have to repeat sum if over and over again. I have tried my own research and most people suggest sumif with sumproduct and indirect but I cannot get my head round it. This is the formula I am using at the moment: =(SUMIF('SMITH S'!V$4:V$22,C5,'SMITH S'!W$4:W$22)) 'Smith S' is an employee name and the other sheets are all named in that format. I have created a list and defined a name for it called 'tabs'. I understand you need to do this for the indirect function? Can some body reply with the formula I need to use that includes my other 30 worksheets please? |
#2
![]() |
|||
|
|||
![]() Quote:
Assuming "Smith S" is recorded in cell A7 (amend this to suit), the formula would be: =SUMIF(INDIRECT(A7&"!V$4:V$22"),C5,INDIRECT(A7&"!W $4:W$22")) HOWEVER, you cannot use spaces in the tab names. So you would have to have "Smith_S" or "SmithS" or "Smith.S" or something similar. As for needing to define a range name for INDIRECT to work.... Never had to do that. You just need the tab names in a list that you will refer to. Last edited by Spencer101 : July 1st 12 at 07:39 AM |
#3
![]() |
|||
|
|||
![]() Quote:
Thanks for replying - I tried your advice but I am getting the REF error - can you take a look at the attached please and see where I am going wrong? I would like the formula on the 'SUMMARY' tab to the right of the 9 digit codes...where I started my original SUMIF formula. |
#4
![]() |
|||
|
|||
![]() Quote:
I'm not 100% sure I understand what you're trying to do on your summary sheet. Could you explain a little more? Spencer. |
#5
![]() |
|||
|
|||
![]() Quote:
Take a look at the attached, it's what I have just changed around - some of the errors still remain though and not sure why. Last edited by Mark234 : July 1st 12 at 11:48 AM |
#6
![]() |
|||
|
|||
![]() Quote:
|
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Mark
IMO your layout is wrong. I would be more inclined to have 1 sheet to record all the entries in columns, the mega benefit of this is that you dont have to worry about complex formulas branching across several sheets. Date | Emp | Expense | Amount | VAT You could then look at a matrix grid for your Summary Sheet. You could also have another sheet which you could use for one-off employee search | View | Print on a Monthly/Annual basis.... This would mean you will eliminate the need for multiple tabs for each employee, which would expand & contract due to attrition. I would be happy to redo your existing and send it to you for your perusal. Cheers HTH Mick. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Update multiple spreadsheets in multiple workbooks | Setting up and Configuration of Excel | |||
SUMPRODUCT, SUMIF, COUNTIF for multiple sheets for multiple criter | Excel Worksheet Functions | |||
SUMIF - counting across different spreadsheets | Excel Worksheet Functions | |||
SUMIF with multiple criteria for multiple columns to sum a single | Excel Programming | |||
How to update multiple links in multiple spreadsheets followin mo. | Excel Worksheet Functions |