+ Reply to Thread
Results 1 to 5 of 5

apply formula to each cell in range - relative references

  1. #1
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    apply formula to each cell in range - relative references

    I've managed to do what I set out to, which is to put a relative formula in each of the cells in a range in a table using the following section of code:
    Please Login or Register  to view this content.
    However, as some of the cell values being returned are blank, I get #N/A returned.

    If I change to the following
    Please Login or Register  to view this content.
    the formulas stop being put in any of the cells in the range.

    Putting the iferror formula into each cell manually works though.

    Anybody know why cos it's killing me

  2. #2
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Re: apply formula to each cell in range - relative references

    I've had to change the formula as Index Match Match wouldn't work as there's more than one instance of the look up so used Sumproduct.

    Please Login or Register  to view this content.
    This returns zeros where no corresponding entry is found so works ok with the rest of the math, however I'm still confused as to why it stops doing anything with IFERROR.
    Last edited by BuZZarD73; 12-12-2014 at 01:18 PM. Reason: typos

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: apply formula to each cell in range - relative references

    Maybe add an if statement?

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Re: apply formula to each cell in range - relative references

    Yup, that does the trick.

    I suppose I could remove the iferror part of the formula (as it's ignored) and just use your line to hide the inevitable error.

    Another 'quirk' to add to the list.

    Cheers.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: apply formula to each cell in range - relative references

    Glad to hear it works for you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 12-12-2014, 02:42 PM
  2. Apply Conditional Formatting to Relative Range
    By wotaj in forum Excel General
    Replies: 1
    Last Post: 09-18-2014, 12:44 PM
  3. [SOLVED] How to copy formula's from a Relative cell without changing the cell references
    By mowens74 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-03-2013, 04:42 AM
  4. Excel 2007 : Relative Cell References in VBA formula
    By Myshal in forum Excel General
    Replies: 0
    Last Post: 10-27-2011, 10:53 AM
  5. Use Relative Cell References for Chart Data Range
    By stargirl5000 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-28-2008, 05:41 AM

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