+ Reply to Thread
Results 1 to 4 of 4

Conditional PRODUCT Function

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Conditional PRODUCT Function

    Hi,

    I have in column A of the attached file some product names and in column B the sales growth rates for the products over a couple of periods.

    In F2 I have used the PRODUCT function to calculate the compound growth rate of AAA, and the same is calculated for BBB in F3.

    Can someone please suggest how I make the PRODUCT formula calculate the compound growth rate for a given product (AAA etc), so I don’t have to select the range over which the compound growth is calculated for each product.

    Thanks!
    Attached Files Attached Files
    Last edited by andrewc; 10-22-2013 at 02:33 AM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Conditional PRODUCT Function

    An array:

    =(PRODUCT(IF(A2:A5=G2,B2:B5)/100+1)-1)*100

    Where G2 = the product you're searching

  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: Conditional PRODUCT Function

    Hi,

    Non-array version of daffodil's if you're interested:

    =(PRODUCT(INDEX(1+(A2:A5=G2)*B2:B5/100,,))-1)*100

    Regards
    Click * below if this answer helped

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

  4. #4
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Conditional PRODUCT Function

    Thank you very much!

+ 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] Need Function that will find ordered product, and display the product code in a 2nd workbk
    By rollerden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2012, 08:52 AM
  2. Conditional product
    By Rodeo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2011, 09:21 AM
  3. Conditional PRODUCT function formula
    By andrewc in forum Excel General
    Replies: 2
    Last Post: 10-01-2009, 12:10 PM
  4. Conditional product of sum
    By bdb1974 in forum Excel General
    Replies: 4
    Last Post: 03-03-2009, 07:07 PM
  5. [SOLVED] Conditional Sum Product
    By Ben010 in forum Excel General
    Replies: 12
    Last Post: 06-15-2006, 01:30 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