+ Reply to Thread
Results 1 to 7 of 7

How can I drag a formula and have the sheet numbers go up while also using SUMIF.

Hybrid View

EissejYaw How can I drag a formula and... 04-22-2012, 01:05 AM
dilipandey Re: How can I drag a formula... 04-22-2012, 01:12 AM
EissejYaw Re: How can I drag a formula... 04-22-2012, 01:23 AM
Haseeb Avarakkan Re: How can I drag a formula... 04-22-2012, 01:56 AM
EissejYaw Re: How can I drag a formula... 04-22-2012, 02:11 AM
EissejYaw Re: How can I drag a formula... 04-22-2012, 02:10 AM
Haseeb Avarakkan Re: How can I drag a formula... 04-22-2012, 02:15 AM
  1. #1
    Registered User
    Join Date
    04-22-2012
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Unhappy How can I drag a formula and have the sheet numbers go up while also using SUMIF.

    I have a spreadsheet that has a sheet for each day and with a dropdown list of items sold for the day (D23:D54), with the prices appearing next to the item (I23:I54). On a seperate summary sheet, I have a SUMIF to add up a the value of each type of item sold that day.
    I.e. =SUMIF(Sheet1!$D$23:$D$54,"=Other Service", Sheet1!$I$23:$I$54)
    Column C is for sheet1, D for sheet 2 and so on... (until sheet 100)

    I want to be able to quickly fill out the formulae up to sheet 100 for all the items, without having to manually change the number after 'sheet' as there are lots of items and 100 sheets and this would just take forever.

    What is the best way to do this? Please help, I'm going mad trying to find the answer!

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How can I drag a formula and have the sheet numbers go up while also using SUMIF.

    Hi EissejYaw,

    Welcome to the forum.

    without having to manually change the number after 'sheet'
    To achieve this, you can use Indirect Function... do little research on this function over Google or Excel Inbuilt Help (F1)

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    04-22-2012
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How can I drag a formula and have the sheet numbers go up while also using SUMIF.

    Thanks Dilipandey. I have tried to look into indirect functions but can't find/work out how to fit it in with my particular situation. Can anyone help to fit it in with the formula I am already using?

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: How can I drag a formula and have the sheet numbers go up while also using SUMIF.

    Hello,

    On summary column C you need SUMIF from Sheet1, column D sumif from Sheet2, column E sumif from sheet3 etc...
    If this you requirement try this in column C, then copy across.

    =SUMIF(INDIRECT("Sheet"&COLUMNS($C:C)&"!D23:D54"),"=Other Service", INDIRECT("Sheet"&COLUMNS($C:C)&"!I23:I54"))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  5. #5
    Registered User
    Join Date
    04-22-2012
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How can I drag a formula and have the sheet numbers go up while also using SUMIF.

    Sorry!!!! My silly mistake, I've been up all night. It works! Thank you!!! You're a hero

  6. #6
    Registered User
    Join Date
    04-22-2012
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How can I drag a formula and have the sheet numbers go up while also using SUMIF.

    Haseeb - Excel accepts the formula but the cells just come up blank.

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: How can I drag a formula and have the sheet numbers go up while also using SUMIF.

    ...deleted...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1