+ Reply to Thread
Results 1 to 3 of 3

Need to add cells depending on other cell.

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2007
    Posts
    29

    Question Need to add cells depending on other cell.

    Hi
    I need to add few cells.
    But problem is My number of cells depend on other cells value.
    E.G
    I want to add values from column AR
    depending on value in cell P2

    Right now m using
    =(SUMIF(AQ$5:AQ$469,AX4,AR$5:AR$469))/P$2

    but unsuccessful

    suppose if P2 is 2
    so i will add AR5 and AR13
    suppose p2 is 3
    thn I will add AR5 AR13 and AR21 and so on....


    Can some one help.?

    Thanks in advance
    Last edited by Ashurk77; 11-25-2013 at 09:52 AM.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Need to add cells depending on other cell.

    =SUMPRODUCT(IF(MOD(ROW(AR1:AR100)+3,8)=0,1,0)*IF(ROW(AR1:AR100)<=P2*8-3,AR1:AR100,0))

    as an array formula (confirm with ctrl+shift+enter)

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Need to add cells depending on other cell.

    Cross-posted (and answered there 25 minutes ago...)

    http://www.mrexcel.com/forum/excel-q...ther-cell.html
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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. Unprotect Cells depending on Cell value
    By Abes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  2. [SOLVED] Unprotect Cells depending on Cell value
    By Abes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. Unprotect Cells depending on Cell value
    By Abes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  4. Unprotect Cells depending on Cell value
    By Abes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. [SOLVED] Unprotect Cells depending on Cell value
    By Abes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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