Results 1 to 2 of 2
  1. #1
    Star Lounger
    Join Date
    Aug 2001
    Posts
    56
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Left and Find functions - meaning of -1

    In the attached file, there is a Left statement to extract data from column A. The data to be extracted varies in text length from cell to cell. I do not understand how the -1 is working. Help.
    Nancy
    Attached Files Attached Files

  2. #2
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts
    You want everything to the left of the hyphen, so you have to subtract one from the position the hyphen is found at. E.g. if it's the third character, you want the left 2 characters.
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

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