Thanks. The logic is for every three items, the third is free nd the free should be the lowest price. The items should be arranged in order they are bought in batches of three. See attached
On 6 May 2012 16:39, dguillett1 <dguille...@gmail.com> wrote: > A VERY simple formula for the 1st question. > =LARGE($d$2:$c$4,1)+LARGE($d$2:$c$4,2) > More info on the logic with examples of the 2nd > > > Don Guillett > Microsoft MVP Excel > SalesAid Software > dguille...@gmail.com > > *From:* Robinson Boreh <rbo...@gmail.com> > *Sent:* Sunday, May 06, 2012 7:46 AM > *To:* excel-macros@googlegroups.com > *Subject:* $$Excel-Macros$$ Formula for discount of third item bought by > a customer > > Dear Members, > I need help in coming up with an excel sheet to calculate the cost of > sales i make. > Here is my dilemma: > If a customer buys three items priced differently, then the third item > that costs the least is given as a discount to the client and only charged > for 2 items that cost the highest > > Example > Item Qty Cost Amount x01 1 34 34 x02 1 25 25 x03 1 30 30 Amount to > pay 64 Discount 25 > If a client buys more than three items, then discount is based on batch of > three bought in a sequential order. > Please assist. > Regards, > Boreh > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com
discounts.xlsx
Description: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet