+ Reply to Thread
Results 1 to 5 of 5

Formula to multiply column with a dynamic column

  1. #1
    Forum Contributor
    Join Date
    01-17-2011
    Location
    amsterdam, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    189

    Formula to multiply column with a dynamic column

    I have created a formula to multiply 2 columns (one with prices and one with numbers)
    Only there are multiple columns with number (multiple months), so how can I create formula with a dynamic column?

    I have created an example
    So if I change the month in cell K1, it should multiply the number of the new month times the prices
    I tried to make the formula dynamic with an index function but it did not work out.

    Hope somebody can help me
    Attached Files Attached Files
    Last edited by keis386; 05-20-2015 at 08:58 AM.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula to multiply column with a dynamic column

    =SUMPRODUCT(($I$2:$I$9)*INDEX($B$2:$G$9,,MATCH(K$1,$B$1:$G$1,0)))
    Try the above formula
    Please Login or Register  to view this content.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Contributor
    Join Date
    01-17-2011
    Location
    amsterdam, Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    189

    Re: Formula to multiply column with a dynamic column

    Great I was so close! Thanks!!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Formula to multiply column with a dynamic column

    try

    =SUMPRODUCT(--(B$1:G$1=$K$1)*($B2:$G9)*($I2:$I9))

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Formula to multiply column with a dynamic column

    Ignore my last post ... brain dead!!!

+ 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: 8
    Last Post: 09-16-2014, 09:49 AM
  2. Replies: 4
    Last Post: 09-03-2014, 02:57 AM
  3. Replies: 1
    Last Post: 07-12-2012, 02:29 PM
  4. Replies: 5
    Last Post: 06-10-2010, 09:45 AM
  5. Replies: 8
    Last Post: 08-06-2009, 09:02 AM

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