+ Reply to Thread
Results 1 to 4 of 4

how to read numbers with percentage symbol as is

  1. #1
    Registered User
    Join Date
    07-19-2020
    Location
    Nashua
    MS-Off Ver
    365
    Posts
    2

    how to read numbers with percentage symbol as is

    hello,
    I have just started learning macros recently. i have a requirement that says Check if column entries contains numbers 0-9 and can have just one decimal. my Problem here is i have an entry on cell that is 6% and another cell with value 0.06
    in this case,expectation is cell entry 6% must fail as it has a percentage symbol but pass the other entry with 0.06, now how do i achieve this? because vba functions reads 6% as 0.06 and passes the scenario instead of failing.

    Thanks in advance!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: how to read numbers with percentage symbol as is

    You could try using .Text rather than .Value.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-19-2020
    Location
    Nashua
    MS-Off Ver
    365
    Posts
    2

    Re: how to read numbers with percentage symbol as is

    Wow, thank you TMS! it worked.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: how to read numbers with percentage symbol as is

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Match numbers with attached symbol
    By Khaldon in forum Excel General
    Replies: 7
    Last Post: 05-22-2014, 05:29 AM
  2. how to get the percentage symbol with the result?
    By sumesh56 in forum Excel General
    Replies: 2
    Last Post: 04-01-2013, 08:57 PM
  3. Showing a + symbol for positive numbers
    By avidcat in forum Excel General
    Replies: 2
    Last Post: 12-22-2010, 09:21 AM
  4. To seperate two numbers or words which has symbol between them
    By Meitreya in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-08-2010, 02:04 AM
  5. Add £ symbol to all numbers within brackets
    By santaklawze in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-19-2010, 01:21 PM
  6. Replies: 1
    Last Post: 04-18-2006, 01:35 PM
  7. How do I add a symbol between numbers in a column?
    By Deb in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-11-2005, 07:50 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