+ Reply to Thread
Results 1 to 6 of 6

Inserting "x" into cell which then converts into ascending numbers.

  1. #1
    Registered User
    Join Date
    07-01-2013
    Location
    melbourne australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Inserting "x" into cell which then converts into ascending numbers.

    Hi my problem is that I would like to be able to insert an X on a touch pad device that would covert into a number starting from 1 when inserted and ascending, so insert X a second time and it would then convert number to 2...etc. If that is achievable then is it possible that it would add up the totals in a in a "totals cell" at bottom of page. So 'CELL' A1 (which had 2 x's)=2,'CELL' A2 (which had 3 x's)=3, 'Total sum' Cell A3=5
    I hope I have explained my problem clearly enough. Thanks for your help in advance.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Inserting "x" into cell which then converts into ascending numbers.

    xx in a1
    xxx in a2
    a3
    =len(a1)+len(a2)
    or for more
    =SUMPRODUCT(LEN($A$1:$A$200))
    Last edited by martindwilson; 07-01-2013 at 08:28 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-01-2013
    Location
    melbourne australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Inserting "x" into cell which then converts into ascending numbers.

    Thanks martindwilson for your quick reply.
    I probably haven't expressed myself very well because you answered my question as I asked it. So I will try and explain it better this time.
    What I would like to achieve (but the more i think about it is probably unrealistic)is when I insert an "X" in a cell it will give me value, then I would like to override the "X" with another "X" and get the next ascending number....For example: Cell A1 insert x = 1, then insert another x and override previous x in cell A1=2. So at any one time there is only 1 "x" in a cell. This would then continue for each cell in the range and then calculate a total numeric value in a designated cell below.
    Hope that make sense. Thanks again.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Inserting "x" into cell which then converts into ascending numbers.

    Hi and welcome to the forum

    What you want (enter a data in a cell, then enter more data in that same cell and have it accumulate) is not possible with regular formulas. A cell can either contain data OR a formula, it cant contain both.

    However, this can be done with VBA, so Im sure some-one will be able to help you. I will move this thread to the VBA forum to get better exposure
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    07-01-2013
    Location
    melbourne australia
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Inserting "x" into cell which then converts into ascending numbers.

    Thanks FDibbins for the warm welcome and all of your assistance, its much appreciated.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Inserting "x" into cell which then converts into ascending numbers.

    Happy to help

+ 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