+ Reply to Thread
Results 1 to 15 of 15

Finding a character type within a cell

  1. #1
    Registered User
    Join Date
    01-06-2005
    Posts
    6

    Finding a character type within a cell

    Is there a find or search function that will return the position of the first number character within a cell?

    for example

    A1= TEST PRODUCT M123

    is there a formula i could write that will return "15" being that is the posistion in the cell that the "1" is in? I dont want to look for the "1" in particular, just the first number in the cell.

    thanks!

  2. #2
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




  3. #3
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




  4. #4
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




  5. #5
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




  6. #6
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




  7. #7
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




  8. #8
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




  9. #9
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




  10. #10
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




  11. #11
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




  12. #12
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




  13. #13
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




  14. #14
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




  15. #15
    Bernie Deitrick
    Guest

    Re: Finding a character type within a cell

    shineboxnj,

    For your string in cell A1, the following array formula (entered using
    Ctrl-Shift-Enter) will return 15:

    =MIN(IF(ISERROR(1*(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1))),255,ROW(INDIRECT("A1:A"&LEN(A1)))))

    All on one row.... watch any line breaks introduced by your newsreader.

    HTH,
    Bernie
    MS Excel MVP

    "shineboxnj" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Is there a find or search function that will return the position of the
    > first number character within a cell?
    >
    > for example
    >
    > A1= TEST PRODUCT M123
    >
    > is there a formula i could write that will return "15" being that is
    > the posistion in the cell that the "1" is in? I dont want to look for
    > the "1" in particular, just the first number in the cell.
    >
    > thanks!
    >
    >
    > --
    > shineboxnj
    > ------------------------------------------------------------------------
    > shineboxnj's Profile:
    > http://www.excelforum.com/member.php...o&userid=18106
    > View this thread: http://www.excelforum.com/showthread...hreadid=389217
    >




+ 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