Vlookup and Roundup combined

JoeRooney

Board Regular
Joined
Nov 27, 2017
Messages
169
Office Version
  1. 365
Hi ,

I am having problems writing a formula with roundup and VLOOKUP combined and wondering if anyone could help me.

I have a product table that is split into durations of 3 months (Example below). The value of the product always rounds up to a duration of 3, for example if the duration is 1 month the value to be reported is the same as the duration of 3 months, if the duration is 4 months it should be reported the same as the duration of 6 months and so on.

Unique IDProduct CodeDurationDAD
12343123430.500.41
12346123460.990.81
12349123491.491.22

At the moment I am using a unique ID to validate the values in a spreadsheet to confirm it matches the product table. What I cant figure out is to add roundup to vlookup so I will still get a value reported if the duration in the spreadsheet does not exist i.e. 8 months duration is not in the product table , If 8 is reported in the spreadsheet I would like the formula to report the value for 9 months.

Any help with this is greatly appreciated
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
You could use the CEILING function
 
Upvote 0
If I understood correctly, do you need something like this?

Book1
ABCDE
1Unique IDProduct CodeDurationDAD
212343123430.50.41
312346123460.990.81
412349123491.491.22
5
6
7
8DurationD
910.5
1020.5
1130.5
1240.99
1350.99
1460.99
1571.49
1681.49
1791.49
Hoja2
Cell Formulas
RangeFormula
B9:B17B9=VLOOKUP(A9+2,$C$2:$D$4,2,1)
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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