+ Reply to Thread
Results 1 to 4 of 4

Looking to copy multiple relative references in a single formula.

  1. #1
    Registered User
    Join Date
    11-18-2016
    Location
    Moscow, Idaho
    MS-Off Ver
    2007
    Posts
    4

    Looking to copy multiple relative references in a single formula.

    Basically, the first part of my formula is to multiply the value of two cells if the value of a 3rd cell is "Y", otherwise read 0. (=IF(D1="Y",A1*C1,0)). That's the easy part. What I really want is one cell to add up about 40 columns worth of the same expression. (=Sum(If(D1="Y",A1*C1,0),If(D2="Y",A2*C2,0),...,If(D40="Y",A40*C40,0)).
    I'm wondering if there is a way to simplify creating this formula without having to build the entire thing by hand. It seems like there should be a function similar to the relative returns you automatically get when dragging a formula down or over, but one that allows me to populate those relative numbers into a single formula.
    Sorry if there are any typos in my formula, I'm doing this on my phone. The formula itself works, I'm just looking for a way to shorten the process of writing it.

    Thanks

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Looking to copy multiple relative references in a single formula.

    For 100 rows-
    Please Login or Register  to view this content.
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Registered User
    Join Date
    11-18-2016
    Location
    Moscow, Idaho
    MS-Off Ver
    2007
    Posts
    4

    Re: Looking to copy multiple relative references in a single formula.

    Awesome, thanks so much

  4. #4
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Looking to copy multiple relative references in a single formula.

    Glad to know that helped

    As you are new to the forum I would like to inform that if your query is resolved kindly mark the thread as "Solved".
    You can do so by clicking on "Mark this thread as Solved" from the "Thread Tools" at the top of this page.
    You can also click on "Add Reputation" to add to their reputation for any user who has helped you

    Regards
    Sourabh

+ 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: 9
    Last Post: 07-03-2015, 03:48 AM
  2. [SOLVED] copy to row and in column with Relative and Absolute Cell References
    By Kamboj in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-18-2014, 02:07 AM
  3. Copy Chart and Data Down With Relative References
    By splendidus in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-06-2013, 10:33 AM
  4. [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
  5. How to copy an array without changing relative cell references?
    By Dmitry in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-19-2006, 10:15 AM
  6. How to copy an array without changing relative cell references?
    By Dmitry in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-19-2006, 10:15 AM
  7. [SOLVED] How to copy an array without changing relative cell references?
    By Dmitry in forum Excel General
    Replies: 0
    Last Post: 06-19-2006, 10:10 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