Hide text with format after nth character (input field)

improvet

New Member
Joined
Apr 26, 2017
Messages
14
Hi,

After the 8:th charachter I would like to either change the color to white or just not show them. Is this possible?

Example:

12345678#abc

The charachters after # is optional code for input to a formula, and are also the ones I want to hide.


Rather not use vba for this but it seems like it's the only solution right now.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
it's populated like this:
23044563#45

The first set of numbers always have the 8 digit length.
It can be up to 4 numbers after #.
After the first set of 8 numbers everything else should be "invisible" but still readable by a formula.

So either with the same color as the background (vba is the only way I can think of for accomplishing this), or #+numbers not shown via a custom format if possible

Unless there are other possibilities?
 
Last edited:
Upvote 0
so a person types "23044563#45" into a cell, but you only want to show the "23044563"

is this in a specific cell or column?
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,580
Members
448,972
Latest member
Shantanu2024

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