+ Reply to Thread
Results 1 to 5 of 5

update formula row and column while dragging

  1. #1
    Registered User
    Join Date
    04-05-2016
    Location
    India
    MS-Off Ver
    2013
    Posts
    78

    update formula row and column while dragging

    I have listed out data row-wise and I wish to consolidate the data column-wise as in the attached file

    In cell G4, I used the formula SUMIFS($C$4:$C$13,$A$4:$A$13,F3,$B$4:$B$13,E4)

    I have to update the formula manually (row and column index lookup) each time when I drag it row wise and column wise. How is it possible to make the formula automatically adapt to the header and row when I drag diagonally to get the sum of all items as shown in output format?
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: update formula row and column while dragging

    Try this...
    =SUMIFS($C$4:$C$14,$A$4:$A$14,G$3,$B$4:$B$14,$E4)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: update formula row and column while dragging

    maybe this one
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by sandy666; 02-10-2018 at 02:42 AM.

  4. #4
    Registered User
    Join Date
    04-05-2016
    Location
    India
    MS-Off Ver
    2013
    Posts
    78

    Re: update formula row and column while dragging

    I think what you meant was F$3 instead of G$3. Thanks for the logic.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: update formula row and column while dragging

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. [SOLVED] Dragging formula down every other column
    By 1003064 in forum Excel General
    Replies: 10
    Last Post: 11-09-2016, 11:30 AM
  2. [SOLVED] Dragging 2 column formula across
    By pdauction in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-15-2015, 08:38 AM
  3. [SOLVED] Dragging Formula to Fill Column
    By arpirnat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2015, 11:50 AM
  4. Dragging Function Does Not Update - have to click formula bar.
    By tndinnc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-28-2013, 09:25 AM
  5. [SOLVED] Skipping a column when dragging formula
    By bharbir in forum Excel General
    Replies: 4
    Last Post: 08-05-2013, 01:51 AM
  6. [SOLVED] Skip column when dragging formula.
    By D_N_L in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-16-2012, 07:42 AM
  7. [SOLVED] dragging a formula down a column
    By Jason R in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2005, 09:10 PM

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