+ Reply to Thread
Results 1 to 9 of 9

Thread: Count for Sms application

  1. #1
    Registered User
    Join Date
    02-16-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    16

    Smile Count for Sms application

    We have an application in our office which will send SMS directly from excel. For that excel sheet I require coding. Though I am aware this can be done by formula I would prefer macro for this.

    MY 3 REQUIREMENTS:-

    1) What ever I type in A:A (A1, A2, A3 and so on..) I should get count of characters in B:B (B1, B2 , B3 and so on...)

    2) Would prefer live running count in B:B

    3) C:C should show me the number of Sms it will take.

    0 - 140 = 1 sms
    141 - 280 = 2 sms
    281 - 420 = 3 sms
    421 - 560 = 4 sms and so on...(ie max characters for 1 sms is 140 characters)

    Can anyone help me out with that..!!
    Last edited by meet2mayank; 04-29-2010 at 02:57 AM.

  2. #2
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Count for Sms application

    Is there a particular reason why you want a macro to create the cell contents? Why re-invent the wheel when you can do what you want with two very simple formulae? Especially the automatic updating when values change are a no-brainer with formulae, whereas with macros, you'd have to constantly repeat running the macro (event based).

  3. #3
    Registered User
    Join Date
    02-16-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Count for Sms application

    Thanks Teylyn for the reply.
    It didnt striked me that I would have to run macro again n again. Cant it wthout be event based?
    And could you please help me out with the formule for my 3rd requirement!!

    Regards
    Mayank

  4. #4
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Count for Sms application

    Assuming that you have column titles in row 1, use

    B2 =LEN(A2)
    C2 =CEILING(B2/140,1)

    Copy down.

  5. #5
    Registered User
    Join Date
    02-16-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    16

    Red face Re: Count for Sms application

    Dear Moderator....

    Thanks a lot..It worked like a charm..Cheers

    "Ceiling" formulae was new to me..Thanks for the knowledge.

    Just one more small help required. I would like to copy the given formulae given by you in whole sheet but the formulae should not be displayed in the cells. It should appear as if the cell is blank.

    Kindly help so that I could mark this thread as 'SOLVED"

    Thanks & Regards
    Mayank

  6. #6
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Count for Sms application

    You can not hide the formula and display the result. The only thing you can do is lock the cells, then protect the sheet and specify that only unlocked cells can be selected. This way the user will not be able to click the cell and will not be able to see the formula.

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & read 2007
    Posts
    15,979

    Re: Count for Sms application

    Hello meet2mayank,

    You can hide the formula from being displayed in cell, but the formula will atill be displayed in the formula bar. To hide the formula in the cell...

    1. On the menu go to Tools
    2. Select Options... This will display the Options dialog.
    3. Click the View tab
    4. Look for the check box labeled Formulas. If it it checked then click it to clear it.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  8. #8
    Registered User
    Join Date
    02-16-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Count for Sms application

    gre8....Thanks lot Ross & Teylyn for your valuable suggestions.
    U guys and this forum is just superb. I appreciate your efforts.

    Regards,
    Mayank Jain

  9. #9
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Count for Sms application

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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