+ Reply to Thread
Results 1 to 7 of 7

How to hide First 7 and last 8 characters from text value.

  1. #1
    Registered User
    Join Date
    06-13-2022
    Location
    United States
    MS-Off Ver
    2016
    Posts
    36

    How to hide First 7 and last 8 characters from text value.

    I am trying to accomplish two things.
    in column A I have text value: MEN-FP-CUSTOMFLAG-XLG-NVY
    I want it to show in column B: CUSTOMFLAG , removing first 7 and last 8 characters or hiding it.

    second issue: in column B, when pasting values from column A, in this case MEN-FP-CUSTOMFLAG-XLG-NVY, I want in column A to paste value in C if its available, if not keep pasting value in B.

    Thanks!

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: How to hide First 7 and last 8 characters from text value.

    Possibly with a MID function formula in column B...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-13-2022
    Location
    United States
    MS-Off Ver
    2016
    Posts
    36

    Re: How to hide First 7 and last 8 characters from text value.

    Thank you so much! spent so much time looking for it. it works great. Could you please help with the second issue also. how can I make this formula to look at both column A and column B values. and always display A value unless B value has data in it. than display B value if there is date.

  4. #4
    Registered User
    Join Date
    06-13-2022
    Location
    United States
    MS-Off Ver
    2016
    Posts
    36

    Re: How to hide First 7 and last 8 characters from text value.

    Quote Originally Posted by dangelor View Post
    Possibly with a MID function formula in column B...
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thank you so much! spent so much time looking for it. it works great. Could you please help with the second issue also. how can I make this formula to look at both column A and column B values. and always display A value unless B value has data in it. than display B value if there is date.

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,916

    Re: How to hide First 7 and last 8 characters from text value.

    Try this:

    = IF(B1<>"",B1,A1)

  6. #6
    Registered User
    Join Date
    06-13-2022
    Location
    United States
    MS-Off Ver
    2016
    Posts
    36
    Quote Originally Posted by Phuocam View Post
    Try this:

    = IF(B1<>"",B1,A1)
    thank you! how should I add previous formula to hide first and last characters within this if value?

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,916

    Re: How to hide First 7 and last 8 characters from text value.

    Maybe like this?

    = IF(B1<>"",MID(B1,8,LEN(B1)-15),MID(A1,8,LEN(A1)-15))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Hide password not only for characters but also for numbers
    By jaryszek in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-11-2019, 06:01 AM
  2. Replies: 6
    Last Post: 05-17-2018, 10:20 AM
  3. Remove Text characters, leaving numerical characters
    By aschwalge in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-01-2016, 06:42 PM
  4. hide password characters
    By scouse13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2015, 06:09 AM
  5. Replies: 3
    Last Post: 03-11-2015, 03:25 PM
  6. Replies: 1
    Last Post: 04-18-2005, 05:06 PM
  7. Replies: 1
    Last Post: 04-17-2005, 08:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1