+ Reply to Thread
Results 1 to 4 of 4

Using a cell value to reference a worksheet in SUMIF function

  1. #1
    Registered User
    Join Date
    12-29-2010
    Location
    Old Bridge, NJ
    MS-Off Ver
    Excel 2003
    Posts
    2

    Unhappy Using a cell value to reference a worksheet in SUMIF function

    Hi.

    I have a spreadsheet which has 13 worksheets. One for each month and a calculation worksheet. The calculation worksheet has a column for each month. The calculations are identical from month to month with the exception of the worksheet being referenced. I currently hardcode the worksheet references.

    =SUMIF(DEC!$B$14:$B$33,"<>CITI",DEC!$G$14:$G$33)

    Every time I modify a formula I have to manually change it twelve times. I added a cell in row 1 of each column of the calculation worksheet to store the month value. Cell R1 contains DEC.

    Is there a way to reference R1 rather than hardcode DEC in the above formula? This would allow me to copy updated formulas through the 12 columns and not have to manually change each one.

    Thanks for your assistance.

    Tony

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Using a cell value to reference a worksheet in SUMIF function

    Hi tonyamabile

    Welcome to the forum

    You would do best to post a sample workbook showing your Sheet Layout and perhaps Before and After examples.

    It should clearly illustrate your problem and not contain any sensitive data.

    Knowing your sheet layout will potentialy, solve your problem

    Cheers

    From Forum FAQs

    How do I attach a file to a post?

    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'. To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'. Clicking this button will open a new window for uploading attachments. You can upload an attachment either from your computer or from another URL by using the appropriate box on this page. Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file. To upload a file from another URL, enter the full URL for the file in the second box on this page. Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window. You can then close the window to return to the new post screen.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Using a cell value to reference a worksheet in SUMIF function

    By the sounds of it you're looking for INDIRECT but you should note it is Volatile (see link in sig. for more info.)

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-29-2010
    Location
    Old Bridge, NJ
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Using a cell value to reference a worksheet in SUMIF function

    Thank you. This did exactly what I needed it to do.

    Tony

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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