Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Excel Retail Pricing Formula Model with Rounding

Posted on 2014-02-03
8
Medium Priority
?
808 Views
Last Modified: 2014-02-04
HELLO ALL...

I'm having difficulty with an Excel formula.  What we'd like to achieve, is to take some cell (say, A1) and mark it up with a base_% of 100...but THEN...

1...ROUND DOWN to $xx.50 for anything under $100
2...Anything OVER $100 will not have any cents only Whole Dollars, and just round DOWN to the nearest "9" (i.e. for example $108 would be $109 and $132 would be $129)
3...However...anything with a last digit of "5" and OVER would go up  ($135 to $139)  .....and anything with a last digit UNDER "5" would go down.....($144 to $139)

I've just gotta believe this is something simple in Excel that I'm missing...PLEASE HELP!...THANKS!...Mark
0
Comment
Question by:datatechcorp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 12

Expert Comment

by:duttcom
ID: 39831553
So $110 would be $109?

Also, by your description above, if you have a number that is over $100 but less than $105, you get $99 - Is that right?
0
 
LVL 12

Accepted Solution

by:
duttcom earned 2000 total points
ID: 39831555
This formula does what you want, however as I mention above, when a value is over 100 but under 105, you will get 99 -

=IF(A1<100,FLOOR(A1,0.5),IF(INT(RIGHT(INT(A1)))<5,FLOOR(A1,10)-1,CEILING(A1,10)-1))
0
 

Author Comment

by:datatechcorp
ID: 39831567
I think that is right.  I'll have to check with my Accounting Staff (uugh!) in the morning...but thank you SOOOOO MUCH for responding!  May I continue this question/thread with you if I need to?  I'm going to award you the points nonetheless duttcom, OK?

Let me know...again, Thanks!...Mark
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 12

Expert Comment

by:duttcom
ID: 39831583
No worries, happy to help - just note I am in Sydney Australia so I may disappear after my work day is done.

Meanwhile, FYI, what I have used above is the FLOOR and CEILING functions - they will round a number up or down to a multiple specified, so "FLOOR(A1,10)" will round the number in A1 down to the nearest multiple of 10. CEILING does the same, but it rounds upwards to the multiple you specify, so CEILING(A1,0.5) would round up to the nearest multiple of 0.5
0
 

Author Comment

by:datatechcorp
ID: 39831585
OMG...what a *wonderful* explanation!  Again...thank you SO MUCH for chiming in.  Nice to hear from our brethren "down under"... :-)
0
 

Author Comment

by:datatechcorp
ID: 39834564
Hi Duttcom...just wanted you to know...that I made some "tweaks" to your formula where necessary...it worked like a *champ*...and our Accounting Dept. was very appreciative.  Again, thank you!...Mark
0
 
LVL 12

Expert Comment

by:duttcom
ID: 39834571
Glad you got a result - and learned a couple of new functions on the way!
0
 

Author Comment

by:datatechcorp
ID: 39834574
AMEN! :-)
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question