Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8918501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:46:04+00:00 2026-06-15T05:46:04+00:00

Possible Duplicate: Substring in VBA I’m wondering how to short down a long string

  • 0

Possible Duplicate:
Substring in VBA

I’m wondering how to short down a long string (every string over 300 characters) located in a cell, to be exactly 300 characters.
for example, lets assume “aaaaadd” is 302 characters including “dd”.
so the resault will be “aaaaa”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T05:46:06+00:00Added an answer on June 15, 2026 at 5:46 am

    If you’re just looking for a formula (and not VBA), you can use the LEFT formula:

    =LEFT(A1, 300)
    

    This will truncate the string to 300 characters, and in cases where the string is less than 300 characters it will just return the string. If you need to use VBA, the syntax is basically the same. For example, if you wanted to perform that operation on cell A1:

    MyString = Left(Range("A1").Value, 300)
    

    Here, the first argument to LEFT is the value of cell A1, and the result of the truncating is stored in variable MyString.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Remove characters after specific character in string, then remove substring? I have
Possible Duplicate: How to see if a substring exists inside another string in Java
Possible Duplicate: Replace all occurrences of substring in a string - which is more
Possible Duplicate: Is there a way to substring a string in Python? I have
Possible Duplicate: JavaScript: string contains Jquery: How to see if string contains substring In
Possible Duplicate: Case insensitive contains(string) With Contains() method of String class a substring can
Possible Duplicate: Find all occurrences of a substring in Python I have a string
Possible Duplicate: php string function to get substring before the last occurrence of a
Possible Duplicate: substring algorithm Given two strings, A and B, how to find the
Possible Duplicate: Number of occurrences of a substring in an NSString? I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.