+ Reply to Thread
Results 1 to 9 of 9

Cell Reference in Copied Formula Won't Update Automatically

Hybrid View

  1. #1
    Registered User
    Join Date
    12-03-2012
    Location
    Nassau, Bahamas
    MS-Off Ver
    Excel for Mac 2011, Excel 2007, Excel 2003
    Posts
    5

    Cell Reference in Copied Formula Won't Update Automatically

    Hi everyone. I'm having a bit of trouble with a formula from a workbook I'm trying to create. The workbook has:

    1. A worksheet containing employee names
    2. A worksheet for each employee that calculates the amount of inventory sold per product
    3. A worksheet that adds up the amount of inventory sold by all the employees per product

    I would like for that last worksheet to reference the name list held in the first worksheet. For each product it will go to the name list, get an employee name, then go to that employee's worksheet and retrieve the inventory sold for that product. The formula I created to do that is as follows:

    =IF(ISERROR(INDIRECT("'"&'Input Data'!$A$5&"'"&"!"&"I3")),0,INDIRECT("'"&'Input Data'!$A$5&"'"&"!"&"I3"))

    I can add versions of the formula to add the inventory amounts for each employee, changing the name list cell reference in each one (highlighted in bold):

    =IF(ISERROR(INDIRECT("'"&'Input Data'!$A$5&"'"&"!"&"I3")),0,INDIRECT("'"&'Input Data'!$A$5&"'"&"!"&"I3")) + IF(ISERROR(INDIRECT("'"&'Input Data'!$A$6&"'"&"!"&"I3")),0,INDIRECT("'"&'Input Data'!$A$6&"'"&"!"&"I3")) + ...

    My problem however is highlighted in bold below:

    =IF(ISERROR(INDIRECT("'"&'Input Data'!$A$5&"'"&"!"&"I3")),0,INDIRECT("'"&'Input Data'!$A$5&"'"&"!"&"I3"))

    I would like to copy my formula to apply to all the products I'm tracking but that cell reference will not change automatically. That means for each product I would have to do it manually and there are many products. Is there a way to get that cell reference to update automatically?

    Thank you for your help!

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Cell Reference in Copied Formula Won't Update Automatically

    Perhaps you could upload a copy of your workbook with sample data showing a bit of detail, along with expected results. Also, since you have Excel 2007, your first formula can be changed to this:
    Formula: copy to clipboard
    =IFERROR(INDIRECT("'"&'Input Data'!$A$5&"'"&"!"&"I3"),0)
    - Moo

  3. #3
    Registered User
    Join Date
    12-03-2012
    Location
    Nassau, Bahamas
    MS-Off Ver
    Excel for Mac 2011, Excel 2007, Excel 2003
    Posts
    5

    Re: Cell Reference in Copied Formula Won't Update Automatically

    I neglected to add the other Excel versions the file will be used in. I've updated my profile. Sorry for the confusion!

  4. #4
    Registered User
    Join Date
    12-03-2012
    Location
    Nassau, Bahamas
    MS-Off Ver
    Excel for Mac 2011, Excel 2007, Excel 2003
    Posts
    5

    Re: Cell Reference in Copied Formula Won't Update Automatically

    Load Sheet Sample.xlsx

    That is a sample of the workbook. The 'Input Data' sheet contains the list of employees. The 'Inventory' sheet contains the formula I'm having trouble with and the sheets for each employee are labeled 'Employee 1' and 'Employee 2'.

    Thanks for taking a look. I really appreciate it.

  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Cell Reference in Copied Formula Won't Update Automatically

    If the products are always on the same row (3, 4, 5, etc.) and the inventory #'s in the same column (I), then why not use this in cell C5 on the Inventory sheet:
    Formula: copy to clipboard
    =SUM('Employee 1:Employee 2'!$I3)

    and fill that down so it totals the Net Count of each product across all of the Employee pages

    So if you had 8 employees, each with their own sheet, the formula would be =SUM('Employee 1:Employee 8'!$I3) for the first product, then filled down.

    You would have to make sure that there aren't any sheets in amongst the 'Employee' sheets, and that Employee 1 is the first sheet, and Employee 8 is the last sheet.

    - Moo

  6. #6
    Registered User
    Join Date
    12-03-2012
    Location
    Nassau, Bahamas
    MS-Off Ver
    Excel for Mac 2011, Excel 2007, Excel 2003
    Posts
    5

    Re: Cell Reference in Copied Formula Won't Update Automatically

    That's a great way of tackling it! I didn't think to look at it that way. Thanks so much for your input. It's a lot simpler than what I had

    I'll go ahead and implement it and let you know how it went.

  7. #7
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Cell Reference in Copied Formula Won't Update Automatically

    Glad I could help.

  8. #8
    Registered User
    Join Date
    12-03-2012
    Location
    Nassau, Bahamas
    MS-Off Ver
    Excel for Mac 2011, Excel 2007, Excel 2003
    Posts
    5

    Re: Cell Reference in Copied Formula Won't Update Automatically

    I went ahead and changed it and everything works perfectly. Thanks again for the help! I went ahead and gave you a star for it. Have a good day chief.

  9. #9
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Cell Reference in Copied Formula Won't Update Automatically

    You're very welcome, and thanks for clicking on the star. Much appreciated.

    - Moo

+ 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