Concatenate to show values to 2 decimal points

VBA learner ITG

Active Member
Joined
Apr 18, 2017
Messages
267
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi all,

I have tried Google to find a fix to my issue but nothing has worked.

The problem that I have is the below formula needs to show 2 decimal points when it concatenates.

=IFERROR(IF($CJ2=$CK2,$CJ2,IF(CZ2=2,(CONCATENATE("£",$CJ2," / ","£",$CK2)),IF(CZ2>2,(CONCATENATE("£",$CJ2," - ","£",$CK2)))))," ")

Example of how the output is currently shown

£2 / £4

The desired result

£2.00 / £4.00

Any help would be appreicated.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try

=IF($CJ2=$CK2,$CJ2,TEXT($CJ2,"£0.00")&IF(CZ2=2," / "," - ")&TEXT($CK2,"£0.00"))

There is nothing in the formula to cause an error so IFERROR should not be needed.
 
Upvote 0
If you want the cell "blank" if CZ2 <2 then try
=IF($CJ2=$CK2,$CJ2,IF($CZ2<2,"",TEXT($CJ2,"£0.00")&IF(CZ2=2," / "," - ")&TEXT($CK2,"£0.00")))
 
Upvote 0
Thank you so much for your replies and formula.
It worked as needed.

I cannot thank you enough for your help.
 
Upvote 0

Forum statistics

Threads
1,215,365
Messages
6,124,513
Members
449,168
Latest member
CheerfulWalker

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