Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2018, 02:13 PM
wheddingsjr wheddingsjr is offline How do you add values in a column when determining the lowest amount within multiple groups Windows 7 64bit How do you add values in a column when determining the lowest amount within multiple groups Office 2016
Advanced Beginner
How do you add values in a column when determining the lowest amount within multiple groups
 
Join Date: Mar 2017
Posts: 76
wheddingsjr is on a distinguished road
Default How do you add values in a column when determining the lowest amount within multiple groups

Hi all



I have a list of over 10k lines that include multiple groups. Within these groups are the columns "MEMBER", "TYPES", and "AMOUNTS". The TYPE is either a TC or 26. Regardless how many lines are within a single group, all amounts that are less than the highest amount has a discount applied to it based on the TYPE. TC types have a 50% discount applied to each amount that are less than the highest amount while type 26 has a 25% discount applied to them. Is there a formula that would allow me to do that? I am attaching a file with an example of what my intentions are.

Thanks
Attached Files
File Type: xlsx Example.xlsx (10.6 KB, 11 views)
Reply With Quote
  #2  
Old 09-06-2018, 07:20 PM
Logit Logit is offline How do you add values in a column when determining the lowest amount within multiple groups Windows 10 How do you add values in a column when determining the lowest amount within multiple groups Office 2007
Expert
 
Join Date: Jan 2017
Posts: 533
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

Paste in D2 and drag down column :

Code:
=IF(B2="TC",C2-(C2*0.5),C2-(C2*0.25))
Reply With Quote
  #3  
Old 09-06-2018, 07:38 PM
NoSparks NoSparks is offline How do you add values in a column when determining the lowest amount within multiple groups Windows 7 64bit How do you add values in a column when determining the lowest amount within multiple groups Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

See https://exceljet.net/formula/max-if-criteria-match

Try this array formula in E2 to get the discount
Code:
=IF($C2<MAX(IF($A$2:$A$20=$A2,$C$2:$C$20)),IF($B2="TC",0.5,0.25)*$C2,0)
confirmed with Shift+Ctrl+Enter not just Enter
and drag down
Attached Files
File Type: xlsx wheddingsjr_Example.xlsx (10.5 KB, 7 views)
Reply With Quote
  #4  
Old 09-07-2018, 07:01 AM
wheddingsjr wheddingsjr is offline How do you add values in a column when determining the lowest amount within multiple groups Windows 7 64bit How do you add values in a column when determining the lowest amount within multiple groups Office 2016
Advanced Beginner
How do you add values in a column when determining the lowest amount within multiple groups
 
Join Date: Mar 2017
Posts: 76
wheddingsjr is on a distinguished road
Default

Thanks NoSparks

This was VERY helpful. Unfortunately though, the highest number should not calculate and populate, its only those that are less than it. I am not sure what you mean by "confirmed with Shift+Ctrl+Enter not just Enter and drag down". I thought perhaps thats why the high number is being populated because when I do the "Shift+Ctrl+Enter not just Enter nothing happens.
Reply With Quote
  #5  
Old 09-07-2018, 08:26 AM
NoSparks NoSparks is offline How do you add values in a column when determining the lowest amount within multiple groups Windows 7 64bit How do you add values in a column when determining the lowest amount within multiple groups Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

Quote:
the highest number should not calculate and populate
change the last 0 in the formula to ""

as you can see from the link included the MAX(IF portion of the formula is an array formula
when you enter a 'normal' formula into a cell you just hit Enter for Excel to accept it
with an array formula you have to hit Shift+Ctrl+Enter all at the same time for Excel to accept it as an array formula
and Excel will automatically add the { and } to the formula.

drag down... click and hold on that little square in the lower right corner of the cell and pull it down the column to copy the formula to those cells


Hope that helps.
Reply With Quote
  #6  
Old 09-07-2018, 12:35 PM
wheddingsjr wheddingsjr is offline How do you add values in a column when determining the lowest amount within multiple groups Windows 7 64bit How do you add values in a column when determining the lowest amount within multiple groups Office 2016
Advanced Beginner
How do you add values in a column when determining the lowest amount within multiple groups
 
Join Date: Mar 2017
Posts: 76
wheddingsjr is on a distinguished road
Default

Thanks NoSparks, that did the trick and it work out perfectly. I truley appreciate all of your help
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
append multiple time values to date in one column sarahafeez Excel 1 09-25-2017 11:01 PM
2-Column layout breakes with images/groups ben-in-m Word 0 06-02-2017 01:26 PM
Multiple found values from five sheets, multiple returned values in sheet six? irisha Excel Programming 26 09-30-2016 01:20 AM
How do you add values in a column when determining the lowest amount within multiple groups What formula can I use to find the lowest cell in a column that has a value in it? EddyWD Excel 3 04-20-2016 09:29 PM
How do you add values in a column when determining the lowest amount within multiple groups Insert values from multiple rows based on value in one column pachmarhi Excel 3 07-18-2014 09:57 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft