Using & function in cell and can't remove 0s

dpm5028

New Member
Joined
Dec 21, 2018
Messages
2
I am using the & function in a cell to present a value from three different cells. Here is my code:

='AMC Calculator'!E8&'AMC Calculator'K8&'AMC Calculator'!O8

The code works well as it properly shows values from each cell (e.g., '0 5 0'). However, I will only ever need one value from the three chosen cells as the other 2 cells will always be a 0. Thus, I would like to have the 0s not show up (e.g., '5' instead of '0 5 0'). I have already unchecked the "Show a zero in cells that have a zero value" from the "Display options for this worksheet" in the excel options menu. Any help will be greatly appreciated.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
How about
=max('AMC Calculator'!E8,'AMC Calculator'K8,'AMC Calculator'!O8)
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,956
Messages
6,175,613
Members
452,661
Latest member
Nonhle

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