Mround/roundup

maywal

New Member
Joined
Dec 19, 2016
Messages
29
I am using the following formula to round costs to fit into their relevant fee structure.

=IF($G68<250000,ROUNDUP($G68,-4),IF($G68<1000000,MROUND(ROUNDUP($G68,-4),50000),IF($G68<1400000,MROUND(ROUNDUP($G68,-4),50000),IF($G68<1600000,MROUND(ROUNDUP($G68,-5),100000),MROUND(ROUNDUP($G68,-5),200000)))))

For example, if the cost is £315,000 I need it to round to £350,000 so that it can find the fee for a £350,000 house in a standardised fee sheet. However, this is not rounding. Instead it is rounding down to £300,000.

As you can see the fee sheet scales in different ways as the costs increase, hence why I have set the formula as such. However, need to understand why it is rounding down not up and also if there is an easier way to do this?

Seems to be working for all other figures.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
maywal, Good afternoon.

Maybe I'm missing something.
Why you need to round value to FIT to the FEE SHEET?

Please, show us your FEET SHEET and how you need to do calculations.
I'm sure that will be some people trying help you.
 
Upvote 0
So all must round to match those within the £ column so that I can match them with a fee scale for one of the companies along the top.



£HSBC/FDYBS/ACCLBGYTS BTLCOVENTRYNATIONWIDE
10000300001000001000001000006000050000
15000300001000001000001000006000050000
20000300001000001000001000006000050000
25000300001000001000001000006000050000
30000300001000001000001000006000050000
35000500001000001000001000006000050000
40000500001000001000001000006000050000
45000500001000001000001000006000050000
50000500001000001000001000006000050000
550006000010000010000010000060000100000
600006000010000010000010000060000100000
650007000010000010000010000075000100000
700007000010000010000010000075000100000
750008000010000010000010000075000100000
8000080000100000100000100000100000100000
85000100000100000100000100000100000100000
90000100000100000100000100000100000100000
95000100000100000100000100000100000100000
100000100000100000100000100000100000100000
105000120000150000200000150000125000150000
110000120000150000200000150000125000150000
115000120000150000200000150000125000150000
120000120000150000200000150000125000150000
125000140000150000200000150000125000150000
130000140000150000200000150000150000150000
135000140000150000200000150000150000150000
140000140000150000200000150000150000150000
150000160000150000200000150000150000150000
160000160000200000200000200000175000200000
170000180000200000200000200000175000200000
180000180000200000200000200000200000200000
190000200000200000200000200000200000200000
200000200000200000200000200000200000200000
210000250000250000300000250000250000250000
220000250000250000300000250000250000250000
230000250000250000300000250000250000250000
240000250000250000300000250000250000250000
250000250000250000300000250000250000250000
300000300000300000300000300000300000300000
350000350000350000400000350000350000350000
400000400000400000400000400000400000400000
450000450000450000500000450000450000450000
500000500000500000500000500000500000500000
550000550000550000600000550000600000600000
600000600000600000600000600000600000600000
650000700000650000700000650000700000700000
700000700000700000700000700000700000700000
7500008000007500001000000750000800000800000
8000008000008000001000000800000800000800000
8500009000008500001000000850000900000900000
9000009000009000001000000900000900000900000
9500001000000950000100000095000010000001000000
1000000100000010000001000000100000010000001500000
1200000125000012000001400000120000012000001500000
1250000125000012500001400000140000014000001500000
1400000150000014000001400000140000014000001500000
1500000150000016000002000000160000016000001500000
1600000200000016000002000000160000016000002000000
1800000200000018000002000000180000018000002000000
2000000200000020000002000000200000020000002000000
2200000200000020000003000000200000022000002500000
2400000200000020000003000000200000024000002500000
2600000200000020000003000000200000026000003000000
2800000200000020000003000000200000028000003000000
3000000200000020000003000000200000030000003000000
3200000200000020000004000000200000032000003500000
3400000200000020000004000000200000034000003500000
3600000200000020000004000000200000036000004000000
3800000200000020000004000000200000038000004000000
4000000200000020000004000000200000040000004000000
4200000200000020000004000000200000042000004500000
4400000200000020000004000000200000044000004500000
4600000200000020000004000000200000046000005000000
4800000200000020000004000000200000048000005000000
5000000200000020000004000000200000050000005000000

<colgroup><col><col span="3"><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
maywal, Good afternoon.

I believe that VLOOKUP function and MATCH function can SOLVE your question.

Suppose your FEE TABLE at E1:K76

Suppose:

A2 --> COMPANY NAME
B2 --> VALUE

Try to use:

C2 --> FORMULA -->
Code:
=VLOOKUP(B2, E2:K76, MATCH(A2, E1:K1, 0), TRUE)
Please, do your tests and tell us if it worked as you want.

I hope it helps.
 
Upvote 0
@maywal.... Replace MROUND(ROUNDUP($G68,-4),50000) with ROUNDUP($G68/50000,0)*50000. Maybe also ROUNDUP($G68/100000,0)*100000 and ROUNDUP($G68/200000,0)*200000.

Aside.... I wonder if you have a mistake. You roundup to a multiple of 50000 when G68 is both less than 1000000 and less than 1400000. If that is correct, it is sufficient to have one condition, to wit: $G68 < 1400000. But I wonder if the result of the second condition should be ROUNDUP($G68,75000,0)*75000.
 
Upvote 0
Hello,

Thank you for your message.

I don't think this will work as I am using a VLOOKUP for the second step of this. Let me explain:

In 'sheet 1' - I am storing the task, the price of the task and other relevant information. The price of the task could be any number. Such as my example above £315,000. In column E I take the price of the task and I round it using the formula above. The reason this needs to round is so that it can match the sheet above. Each of the companies identified above HSBC etc. have their own sheet. I then use the rounded number to VLOOKUP in each of the sheets.

I want to attach a copy of this workbook but I can't seem to find the attachment option. If you could advise on how to do this I think it will make a lot more sense.
 
Upvote 0
I want to attach a copy of this workbook but I can't seem to find the attachment option. If you could advise on how to do this I think it will make a lot more sense.
You cannot upload files to this site. But there are tools you can use to post screen images. They are listed in Section B of this link here: http://www.mrexcel.com/forum/board-a...forum-use.html.
Also, there is a Test Here forum on this board that you can use to test out these tools to make sure they are working correctly before using them in your question.

Some people also upload files to file sharing sites and provide links to it here, but understand that many people here cannot or will not download files from the internet for security reasons.
 
Upvote 0
This array formula should get it:

=MIN(IF(A1:A76>=I1,A1:A76))

with your value in I1.
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,538
Members
449,038
Latest member
Guest1337

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top