Programming

Programming questions? Ask a programmer for answers ASAP

Connect one-on-one with {0} who will answer your question

Hello, I am familiar with the...

Hello,

I am familiar with the typical ROUND functions, but I need a formula to take into account several requirements in order to round where I need them. I think it will be a multiple CEILING formula but not sure:

If the number is XXXXX 50-1000 needs to round to nearest 50, if the number is XXXXX 1000-2000, needs to round to nearest 100, if between 2000-3000 needs to round to nearest 200, and (the tricky one) if between 3000-5000 needs to round to closest 200, 500 or 800.

Any thoughts? Many thanks!

I am familiar with the typical ROUND functions, but I need a formula to take into account several requirements in order to round where I need them. I think it will be a multiple CEILING formula but not sure:

If the number is XXXXX 50-1000 needs to round to nearest 50, if the number is XXXXX 1000-2000, needs to round to nearest 100, if between 2000-3000 needs to round to nearest 200, and (the tricky one) if between 3000-5000 needs to round to closest 200, 500 or 800.

Any thoughts? Many thanks!

Show More

Show Less

Was this answer helpful?

Describe your issueThe assistant will guide you

Chat 1:1 with a programmerLicensed Experts are available 24/7

100% satisfaction guaranteeGet all the answers you need

Related Programming Questions

I have an excel formula question pricing out equipment. ...I

Hi I have an excel formula question pricing out equipment … read more

Hey Steve, you helped me back in December with an algorithm

Hey Steve, you helped me back in December with an algorithm that helps to calculate the number of "packages" in groups of 500, 1000, 2500, and 5000 users would be required to meet certain criteria. I … read more

I am trying to nest the IF function. Can you tell me what is

I am trying to nest the IF function. Can you tell me what is wrong with my formula. =IF(C13<500,(C13*"2.3",IF(C13500,(C13*"1.9")))) I need to put two more if functions in this formula, but I cant e… read more

I need to write a formula in Excel that does the following.Cell

I need to write a formula in Excel that does the following. Cell 1 = Square Footage of Property Cell 2 = Result of formula Formula = If cell 1 is between 0-1000 square feet, than take cell 1 and multi… read more

I would like to know the Microsoft Excel formula to round up

I would like to know the Microsoft Excel formula to round up a 3 decimal number (1.375) to the nearest .500 decimal. Eg 1.275 = 1.500, 5.675 = 6.000, 3.025 = 3.500 ?… read more

Im trying to write a formula that will calculate my inventory

I'm trying to write a formula that will calculate my inventory forward stock cover. For example if I have 1000 units in stock I want to know how many weeks that stock will last me based on a forward s… read more

Hi, Pleas I need help to mak programme to...When shopping

Hi, Pleas I need help to mak programme to...When shopping in a store and paying cash, you may change back. As a rule, the shop assistant by cash register to calculate the amount you should get it back… read more

I need to write a formula that lowers the unit X by.02 for

I need to write a formula that lowers the unit X by.02 for every 1000 increments the unit Y raises. Example If 1000 is entered into the cell then that would be multiplied by 3.25 If 2000 is entered in… read more

Hi, I have a question about how to write an Excel formula.

Hi, I have a question about how to write an Excel formula. I called the 800 # & was told to describe my question via your site, so that it could be evaluated. I don't think it's too difficult, I just … read more

Giving a range of number of minutes from 400 - 500 - 600 -

Giving a range of number of minutes from 400 - 500 - 600 - 800 - 1000 and a price range of $40 - $50 - $60 - $80 - $100 for a giving total number of minutes i.e. 4,000 min - How do I calculate the low… read more

I have entered a formula to round to the nearest 50, can I

I have entered a formula to round to the nearest 50, can I add a maximum number that the calculation will not go over? (it is a spreadsheet that caculates doses for heparin, rounded to the nearest 50 … read more

Write an algorithm and perform desk check for the following

Write an algorithm and perform desk check for the following problem. (2) Problem Description: Calculate the cost of electricity based on consumption of units. Criteria to calculate cost of electricity… read more

help! What formula do I need to calculate a bonus. If they

help! What formula do I need to calculate a bonus. If they sell between 49 and 100, they will get $25. Between 101 and 149, they will get $ 50, snd so on - up to 495. Then I need to total all sales am… read more

Raw data looks like this Month Sales Gross Profit Gross

Raw data looks like this: Month Sales Gross Profit Gross Margin % Jan $100 $10 10% Jan $200 $50 25% Jan $500 $100 20% Feb $100 $25 25% Feb $1000 $475 47.5% Feb $500 $300 60% (real data sheet is huge b… read more

I need to create a simple formula in Excel so that The value

I need to create a simple formula in Excel so that: The value in a cell i automatically returned on an IF basis. So for example: Cell A2 shows (say) a value of 100 IF Cell B2 is greater than X I have … read more

I need help creating a formula in excel. I have a water company

I need help creating a formula in excel. I have a water company and I insert gallons used each month and I need a formula to create the amount due under the following circumstances. Mandatory meter ch… read more

I need two more discount levels, may I email excel spread

I need two more discount levels, may I email excel spread? =IF(A1>100,100+IF(A1>500,(400*0.5)+IF(A1>1000,(500*0.35)+((A1-1000)*0.25),((A1-500)*0.35)),((A1-100)*0.5)),100)… read more

Ok here is my scenario. I am a novice excel user but I am

Ok here is my scenario. I am a novice excel user but I am designing a complex wookbook. So far so good. But this is what I need now and do not know how to program. I need to create a formula that will… read more

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.

JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.

Web sites like justanswer.com/legal

...leave nothing to chance.

...leave nothing to chance.

Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.

Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.

I will tell you that...the things you have to go through to be an Expert are quite rigorous.

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

New York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

Los Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

Hesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

Kernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

Woodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

Elkton, Maryland

< Previous | Next >

LogicPro

Computer Software Engineer

9,436 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

The-PC-Guy

Software Engineer

932 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

Rafael Martins

Computer Software Engineer

449 satisfied customers

Desktop, Mobile and Web Developer. 10+ years of experience. Creative solutions provider.

Ramesh Patil

Computer Software Engineer

406 satisfied customers

MCA, 3+ years of experience in Asp.Net, C#, SSIS, VB.Net, Ms-SqlServer2005, MySql, Javascript,

Arty

Computer Software Engineer

377 satisfied customers

15+ years of programming, C, C++, Java, PHP, awk, ruby, shell, ASM, Forth, Raptor, M.A.R.I.E, Excel

< Previous | Next >

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.