![]() |
|
#1
|
|||
|
|||
|
Is it possible to use a formula within the round function to determine the rounding number of digits?
For this application, a suppliers price for any SKU is dependent on the dimensions which can vary widely thus it's easiest to calculate the price. The problem I have is when calculating a supplier's price, most suppliers use a price with four decimals, one uses three, and another uses two. Initially, I had this which works fine for all but the two that use fewer digits. =ROUND([price calculation],4) I tried making a lookup table with the suppliers and their rounding then vlookup in the formula as follows, but I get a #REF! error. =ROUND([price calculation],VLOOKUP([@Supplier],Round,2)) I tried using an IF, but I get the same #REF! error. =ROUND([price calculation],IF([@Supplier]="H",2,4)) Anyone have any bright ideas? I have attached the workbook if you dare. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Data validation the other way round?
|
Officer_Bierschnitt | Excel | 3 | 11-13-2015 10:12 PM |
Setting up a round label template
|
obiwan | Word | 1 | 11-06-2014 06:55 AM |
| Text animation to wrap round an object | caz46 | PowerPoint | 0 | 10-20-2012 08:01 AM |
Round off the number
|
ubns | Word VBA | 4 | 09-06-2012 03:55 PM |
| how can i make round border edges | bobafet | Word | 4 | 11-19-2009 04:40 PM |