In Excel, why does PERCENTAGE format display change when adding a PERIOD “.” on the IF/VLOOKUP formula?

0

I'm using MS Excel 2016. I’m using this formula:

=IF(D8="","XX.XX%.",VLOOKUP(D8,P:Q,2,FALSE))

to display 12.34%, which is exactly how it appears on the source cell. However, as soon as I concatenate a PERIOD – since it's the end of the sentence -- on the formula:

=IF(D8="","XX.XX%.",VLOOKUP(D8,P:Q,2,FALSE))&"."

I would get 0.1234. on display.

Can anyone help me with how can I get 12.34%. as the result?

Daisy01

Posted 2016-11-01T09:48:17.737

Reputation: 3

Answers

1

Since you are concatenating a number and a string, Excel automatically changes the number format to the General format. To define the format you want for your number, use the TEXT function.

TEXT(VLOOKUP(D8,P:Q,2,FALSE),"0.0%")&"."

Thales

Posted 2016-11-01T09:48:17.737

Reputation: 473

he wants the format as 12.34%, so maybe the right definition is "0.00%". – Máté Juhász – 2016-11-02T07:10:47.097