+ Reply to Thread
Results 1 to 4 of 4

Problem with figuring this out?

  1. #1
    Registered User
    Join Date
    11-03-2006
    Posts
    12

    Problem with figuring this out?

    People will be copying and pasting 4 columns. One of the columns will have an amount and then 2 letters after it like this EXAMPLE: 1000 NP . My question is I need to sum the entire column but the NP needs to be eliminated somehow. Is there a way to somehow make a secondary column to take the number part of the pasted cell and not the "NP" part and then in that secondary column then it would be easy to sum it?

    Example:

    Date Item User Amount
    06/14/06 cheese widow 1000 NP <---Sum this

    But somehow get rid of the NP thats there or make a 5th column that will list the 4th columns number but not the "NP"

    any suggestions?

  2. #2
    Forum Contributor
    Join Date
    07-13-2006
    Posts
    400
    Quote Originally Posted by widow
    People will be copying and pasting 4 columns. One of the columns will have an amount and then 2 letters after it like this EXAMPLE: 1000 NP . My question is I need to sum the entire column but the NP needs to be eliminated somehow. Is there a way to somehow make a secondary column to take the number part of the pasted cell and not the "NP" part and then in that secondary column then it would be easy to sum it?

    Example:

    Date Item User Amount
    06/14/06 cheese widow 1000 NP <---Sum this

    But somehow get rid of the NP thats there or make a 5th column that will list the 4th columns number but not the "NP"

    any suggestions?
    is there always a space between the text and numbers? if so,
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    or

    =VALUE(SUBSTITUTE(D1," NP",""))

    If NP is constant

    VBA Noob

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Or

    again if NP is static/constant

    Select column. Press Ctrl + H. In the find box enter NP and leave the replace box empty and then select replace all

    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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