Custom number format

Beneindias

Board Regular
Joined
Jun 21, 2022
Messages
120
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi everyone,

I can't ind anything about this and I'm not even sure if its possible.

I have a file with a lot of calculations.

In cell H7 I put a number
In cell I7 I have data validation, where I can choose between "Ton, M³ and Un".

Can I format cell H7 to have a custom number, where it shows what is chosen in I7?
For example, if in I7 I have selected Ton, I want to have H7 like "27 Ton", but if M³ is chosen, cell H7 should be "27 M³".

Is this possible??

Thanks for all the help
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I think you would need VBA to do that to change the custom format of the cell.
But, if you wanted a 3rd cell you could concatenate the two (although it would then change the value to text).
 
Upvote 1
I think you would need VBA to do that to change the custom format of the cell.
But, if you wanted a 3rd cell you could concatenate the two (although it would then change the value to text).
That's what I thought.
It's not worth it.

Thanks for your help
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,703
Messages
6,173,972
Members
452,540
Latest member
haasro02

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