+ Reply to Thread
Results 1 to 2 of 2

Dynamically create Sumif formulas

  1. #1
    Forum Contributor
    Join Date
    05-19-2004
    Location
    United States
    MS-Off Ver
    Office XP and Office 2003
    Posts
    127

    Question Dynamically create Sumif formulas

    We need to create a SUMIF formula that will be based on the month a user selects. I'd like to have a formula that will automatically set the formula to use the correct column (H thru BO), depending on the month number they enter. Does anyone know how this can be done? Can a formula be written where the column used on the Vendor Unit Costs sheet reflects the correct monthly column. For example, the following are SUMIF ormulas for month 1 and month 2.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Dynamically create Sumif formulas

    Probably something like this..

    =SUMIF(UsVendVuc,$BM8,INDEX('Vendor Unit Costs'!H$319:'Vendor Unit Costs'!BO$618,0,MATCH(X1,'Vendor Unit Costs'!H$318:'Vendor Unit Costs'!BO$318,0)

    where X1 is an entry to match up to the first row of your data so that it can pick the right column.... assumes row 318 contains those headers.

    adjust as necessary.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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