Format and Concatenate a number

rfinnegan

Board Regular
Joined
Mar 15, 2005
Messages
173
Office Version
  1. 365
Platform
  1. Windows
Hi All:

I have a field in a dashboard report where I need to concatenate a word and a number. I've done it succesfully in 5 other fields using the formula structure below, but in this case, the numbers I am working with are the result of calculations elsewhere in the workbook.

The result of those calculations is sometimes a number that is NOT a whole number. For example, 3327.59516129032 is one of those number.

So using the formula below I get "Prod. Goal 3327.59516129032" I only have space for, and only want to see "Prod. Goal 3328"

I've changed the format of cell C40, but it didn't make a difference.

=CONCATENATE("Prod. Goal"," ",C40)

Any help is appreciated and as always, thanks in advance.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Just a heads up that you can throw CONCATENATE out the window, as the ampersand (&) in Jon's example is much more useful.

As for why you got that behavior, Excel doesn't know your intentions when you add text to a cell reference, so it converts it to its lowest element. You use TEXT to convert it to the format you want.

HTH,
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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