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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

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