+ Reply to Thread
Results 1 to 9 of 9

Dynamic formula to calculate value based on multiple criteria

  1. #1
    Forum Contributor
    Join Date
    07-09-2013
    Location
    Nagpur, India
    MS-Off Ver
    Excel 2010 / 2013
    Posts
    293

    Dynamic formula to calculate value based on multiple criteria

    Please see the example file attached. I needed dynamic formula to calculate Town wise Value for each product codes based on percentage of Town wise total / Total of all town. I have a very large data, shortened my data for example.
    Attached Images Attached Images

  2. #2
    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,916

    Re: Dynamic formula to calculate value based on multiple criteria

    Still using Excel 2010? Which are the EXPECTED results? If they are not there, where and what should they be? Give a worked example.
    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.

  3. #3
    Forum Contributor
    Join Date
    07-09-2013
    Location
    Nagpur, India
    MS-Off Ver
    Excel 2010 / 2013
    Posts
    293

    Re: Dynamic formula to calculate value based on multiple criteria

    Please find the revised example file. I need result in column F to I. For Example I needed formula in cell F4 to calculate value of E4* (Town 1 Total of respective Product code from Column A, i.e. 400) / (Total Town Qty of respective Product code from Column A, i.e. 992). I needed formula which I can easily use on other cells from different Product codes. I'm using formula =$E4*($F$11/$E$11) in cell C4, but for that I needed to change formula for using it on F12.

    I'm using Office 2010 and office 2013 in my office.
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Dynamic formula to calculate value based on multiple criteria

    F4, copied across and down:

    =$E4*INDEX(F5:F24,MATCH("Total",$B5:$B24,0))/INDEX($E5:$E24,MATCH("Total",$B5:$B24,0))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Contributor
    Join Date
    07-09-2013
    Location
    Nagpur, India
    MS-Off Ver
    Excel 2010 / 2013
    Posts
    293

    Re: Dynamic formula to calculate value based on multiple criteria

    Thank you so much sir. That exactly what I wanted.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Dynamic formula to calculate value based on multiple criteria

    You're welcome!

  7. #7
    Forum Contributor
    Join Date
    07-09-2013
    Location
    Nagpur, India
    MS-Off Ver
    Excel 2010 / 2013
    Posts
    293

    Re: Dynamic formula to calculate value based on multiple criteria

    Is there any way we get same results if entire Column B does not have any value. By using Max if function in column E and F:I based on product code in column A?

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Dynamic formula to calculate value based on multiple criteria

    Only the first block has been done:

    =$E4*INDEX(F4:F24,MATCH(TRUE,($A4:$A24<>$A4),0)-1)/INDEX($E4:$E24,MATCH(TRUE,($A4:$A24<>$A4),0)-1)
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    07-09-2013
    Location
    Nagpur, India
    MS-Off Ver
    Excel 2010 / 2013
    Posts
    293

    Re: Dynamic formula to calculate value based on multiple criteria

    Thank You so much sir. SOLVED.

+ 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. IF Formula to calculate banding based on multiple criteria
    By dchar1 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-30-2023, 04:28 PM
  2. Dynamic List based on Multiple Criteria
    By TK66 in forum Excel General
    Replies: 6
    Last Post: 10-19-2023, 08:47 PM
  3. [SOLVED] Formula to Calculate Event Credits based on multiple criteria
    By flamethrower128 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-05-2022, 12:31 AM
  4. [SOLVED] Formula to sum number based on multiple dynamic drop down criteria
    By tml2424 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-04-2022, 08:58 PM
  5. [SOLVED] Sum based on multiple criteria and dynamic column
    By acpena in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2017, 01:05 PM
  6. Formula for summing on multiple row criteria and a dynamic column criteria
    By ianswilson815 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2016, 01:58 PM
  7. Replies: 8
    Last Post: 03-21-2008, 12:09 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