+ Reply to Thread
Results 1 to 5 of 5

VBA to fill the different range with formula depends upon row of header value ends

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    VBA to fill the different range with formula depends upon row of header value ends

    Dear experts

    I have four types table range In which i have to fill the formula depends upon row and column header labels the tables row and column labels values the raw data has connect to get result in sumifs and count ifs function i want fill the formula till header values ends up in each range.


    Table1 Start at C5=SUMIFS(Rawdata!$G:$G,Rawdata!$D:$D,$B5,Rawdata!$A:$A,C$4)-SUMIFS(Rawdata!$I:$I,Rawdata!$C:$C,$A5,Rawdata!$A:$A,C$4) end till row 4 header
    Table2 Start at C20=SUMIFS(Rawdata!$H:$H,Rawdata!$C:$C,$B20) end till row header 19
    Table3 start at C31=SUMIFS(Rawdata!$I:$I,Rawdata!$E:$E,$B31,Rawdata!$C:$C,C$30) It might get extent depends upon row text value in row 30 in the row 31 the formula has to fill
    Table4 COUNTIFS(Rawdata!$J:$J,$V4,Rawdata!$B:$B,W$3) Till end of row header 3



    find the attachment. you may understand what i looking for.
    Attached Files Attached Files

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VBA to fill the different range with formula depends upon row of header value ends

    First, you must clear content cell : S4, V19, H30, AI3 ("It might get extent...").

    The code is :
    Please Login or Register  to view this content.
    Attached Files Attached Files
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: VBA to fill the different range with formula depends upon row of header value ends

    Use a pivot table
    Attached Files Attached Files
    Ben Van Johnson

  4. #4
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: VBA to fill the different range with formula depends upon row of header value ends

    Dear sir Thanks alot!! You are amazing ,You made my day Solved 100%
    Ya I done
    Please Login or Register  to view this content.

  5. #5
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VBA to fill the different range with formula depends upon row of header value ends

    You are welcome. Thanks for marking the thread as solved.


    Regards

+ 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. Need vba to fill fomrula across range depends upon bankcode end in row 11:11
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-13-2016, 03:10 AM
  2. sum the range depends upon header value in column result in row and col wise
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-20-2014, 06:37 AM
  3. [SOLVED] VBA pull data from closed workbook depends upon header status !!! need help of experts
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-12-2013, 07:06 AM
  4. [SOLVED] Setting a range that ends where data ends?
    By Mgassma in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2013, 09:46 AM
  5. [SOLVED] fill column with vlookup formula to other workbook that depends on cell value
    By knick12 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-23-2012, 03:11 AM
  6. Cell fill colour depends on which radionbutton was selected.
    By vdongen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2010, 10:49 AM
  7. [SOLVED] Auto Fill Series when number ends in -1
    By JGus in forum Excel General
    Replies: 7
    Last Post: 12-22-2005, 11:20 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