VLOOKUP working on the calculation rather than the number shown

Palacemad

New Member
Joined
May 19, 2019
Messages
42
HI, I am sure this is a very quick question/answer,

In one cell(D38) I have a SUMIFS formula, the answer it is returning is 0.415. This number is actually a calculation of months in decimals. In the next cell (E38) I have a vlookup to return this figure in months. Cell D38 is rounded to 2 decimal places and is showing 0.42. The vlookup is still producing a returning value of 4 months, even though it should be 5 months. I have even tried using ROUNDUP within the VLOOKUP and this is still not having an impact.

I assumed the reason is due to the VLOOUP working on the actual calculation figure of 0.415, rather than the figure that is showing. However, I am unsure why it is not changing when the ROUNDUP formula is being used.

Any suggestions will be appreciated!

Thank you
 
Here is what is in C38:

=(SUMIFS(PIRA_Assessment1,PIRA_Baseline,">0",PIRA_Assessment1,">0")-SUMIFS(PIRA_Baseline,PIRA_Baseline,">0",PIRA_Assessment1,">0"))/$D$36

In the cell it is currently showing 0.415

This is a section from the decimal to age:

-0.58-7
-0.5-6
-0.42-5
-0.33-4
-0.25-3
-0.17-2
-0.08-1
00
0.081
0.172
0.253
0.334
0.425
0.56
0.587
0.678
0.759
0.8310
0.9211
112
1.0813
1.1714
1.2515
1.3316

<colgroup><col width="112" style="width: 84pt;"><col width="147" style="width: 110pt;"></colgroup><tbody>
</tbody>
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
it should works


Book1
ABCDEF
1-0.58-70.4150.425 months
2-0.5-6
3-0.42-5
4-0.33-4
5-0.25-3
6-0.17-2
7-0.08-1
800
90.081
100.172
110.253
120.334
130.425
140.56
150.587
160.678
170.759
180.8310
190.9211
20112
211.0813
221.1714
231.2515
241.3316
Sheet3
Cell Formulas
RangeFormula
E1=ROUND(D1,2)
F1=IF(ISBLANK(E1),"",ROUNDUP(VLOOKUP(E1,A1:B24,2,0),2)&" months")
 
Upvote 0
To clarify too, the formula in E38 when using ROUNDUP is:

=IF(COUNTBLANK(C38)=1,"",ROUNDUP(VLOOKUP(C38,DecimalToAge,2),0)&" months")

I am fairly certain that is written correctly, happy to proved wrong though!

Hi, sounds to me like you want:

=IF(COUNTBLANK(C38)=1,"",VLOOKUP(ROUNDUP(C38,2),DecimalToAge,2)&" months")
 
Upvote 0
FormR, that has worked correctly thank you. I understood that the ROUNDUP function would have to appear before the VLOOUP, not within it.

Alan, thank you too. I am unsure why your formula did not work, maybe because I didn't have the additional cells breaking down each step.
 
Upvote 0
this might work as well, without the lookup table

=IF(ISBLANK(C38),"",ROUNDUP(C38*12,0)&" months")
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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