+ Reply to Thread
Results 1 to 3 of 3

Thread: Search for a specific character in a cell in an if statement

  1. #1
    mcl
    Guest

    Search for a specific character in a cell in an if statement

    OK, if I have a column of latitudes (for example) in this format 29-34-10N
    where it's degrees minutes and seconds. I want to pull the N (or S) out and
    put in in a new column. I could then just do a search and replace to remove
    all the N's of S's from the original column. How could I set up an "if" to
    do that? I assume it would look something like this: =if(search for
    N,"N","S"). How or can I do the "search".



  2. #2
    Frank Kabel
    Guest

    Re: Search for a specific character in a cell in an if statement

    Hi
    try using 'Data - Text to columns' to separate your data

    --
    Regards
    Frank Kabel
    Frankfurt, Germany
    "mcl" <marc.levine_at_no_spam_afccc.af.mil_no_spam> schrieb im Newsbeitrag
    news:OeS0TEq8EHA.2600@TK2MSFTNGP09.phx.gbl...
    > OK, if I have a column of latitudes (for example) in this format 29-34-10N
    > where it's degrees minutes and seconds. I want to pull the N (or S) out
    > and
    > put in in a new column. I could then just do a search and replace to
    > remove
    > all the N's of S's from the original column. How could I set up an "if" to
    > do that? I assume it would look something like this: =if(search for
    > N,"N","S"). How or can I do the "search".
    >
    >




  3. #3
    JE McGimpsey
    Guest

    Re: Search for a specific character in a cell in an if statement

    One way:

    Assuming that your formats are all 00-00-00x (where x = S or N)

    Choose Data/Text to Columns/Fixed. Click next. Click just to the left of
    the N/S. Click Finish.



    In article <OeS0TEq8EHA.2600@TK2MSFTNGP09.phx.gbl>,
    "mcl" <marc.levine_at_no_spam_afccc.af.mil_no_spam> wrote:

    > OK, if I have a column of latitudes (for example) in this format 29-34-10N
    > where it's degrees minutes and seconds. I want to pull the N (or S) out and
    > put in in a new column. I could then just do a search and replace to remove
    > all the N's of S's from the original column. How could I set up an "if" to
    > do that? I assume it would look something like this: =if(search for
    > N,"N","S"). How or can I do the "search".


+ 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.2.0