+ Reply to Thread
Results 1 to 7 of 7

Adding Cells Characters Function not getting constant values

  1. #1
    Registered User
    Join Date
    07-27-2015
    Location
    British Columbia, Canada
    MS-Off Ver
    2007
    Posts
    89

    Adding Cells Characters Function not getting constant values

    I have a listing of 12 cells with baseball positions and I'm trying to add the char value to a sum to esure only 1 position is allocated

    here is a sample code
    =CODE($E$4)+CODE($E$5)+CODE($E$6)+CODE($E$7)+CODE($E$8)+CODE($E$9)+CODE($E$10)+CODE($E$11)+CODE($E$12)

    In column E4:E12 I get 653
    In Column F4:F12 I get 638

    They both have the same positions ?

    I missing something I just can't see the answer.

    The additions are located in C35 : J39 then the macro copies 1 line (Player 11 ) to C19

    To simulate enter 9 or 10 or 11 into P1 and press Generate.

    I even built macro to activate the function ( Countif ) (Countif2)

    The code in C35 area is what is odd. It should just count the positions and the each column is the same ?

    I have enclosed my program

    I did notice that 9 positions in C35 (9 Players ) math works but 10 - 13 don't


    John

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,417

    Re: Adding Cells Characters Function not getting constant values

    I've moved your thread to a more appropriate section - the Water Cooler is a general chit-chat section.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-27-2015
    Location
    British Columbia, Canada
    MS-Off Ver
    2007
    Posts
    89

    Re: Adding Cells Characters Function not getting constant values

    Thank you I have spent 2 days trying every thing I could think of with no results.

    John

  4. #4
    Registered User
    Join Date
    07-27-2015
    Location
    British Columbia, Canada
    MS-Off Ver
    2007
    Posts
    89

    Re: Adding Cells Characters Function not getting constant values

    Running Excel 2007

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Adding Cells Characters Function not getting constant values

    I don't fully grasp how you're tying all of these pieces together, but I believe that you're getting errors in E36:J39 because the formulas are trying to calculate the CODE values of blank cells, which returns an error for the term that subsequently returns an error for the cell. When I enter a value in E13 and set calculation back to automatic, E36 returns an actual number. If you want to allow for the possibility of a blank E13, you could change the formula in E36 to:

    =CODE(E$4)+CODE(E$5)+CODE(E$6)+CODE(E$7)+CODE(E$8)+CODE(E$9)+CODE(E$10)+CODE(E$11)+CODE(E$12)+IFERROR(CODE(E$13),0)

    Fill right for the other columns. Similarly, E37 should become:

    =CODE(E$4)+CODE(E$5)+CODE(E$6)+CODE(E$7)+CODE(E$8)+CODE(E$9)+CODE(E$10)+CODE(E$11)+CODE(E$12)+IFERROR(CODE(E$13),0)+IFERROR(CODE(E$14),0)

    Fill right through J, then follow the pattern for E38 and E39.

    I hope this helps?
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  6. #6
    Registered User
    Join Date
    07-27-2015
    Location
    British Columbia, Canada
    MS-Off Ver
    2007
    Posts
    89

    Re: Adding Cells Characters Function not getting constant values

    Thank you CAntosh

    I did find the error it was my long nights.

    I did a copy of one of the Code(?) and forgot to change the colume number.

    Aslo forgot to set the "Auto" in the Excel settings.

    Thank you for taking the time to help.

    All the best

  7. #7
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Adding Cells Characters Function not getting constant values

    I'm glad you sorted it out, good luck!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Adding a constant values to certain cells in excell at a time
    By oluagbe1 in forum Excel General
    Replies: 5
    Last Post: 04-17-2017, 05:19 PM
  2. Replies: 1
    Last Post: 11-14-2016, 01:17 AM
  3. Adding characters to cells
    By L.LEE in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2013, 06:36 AM
  4. [SOLVED] Adding constant values using object variable coding
    By highlystrung in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2013, 05:18 PM
  5. Adding characters to existing column values
    By Franv in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2012, 03:44 PM
  6. Adding time values for no sequence cells with an IF function
    By Khaldon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2011, 04:00 AM
  7. Calculating Non-Constant Values in Cells
    By sesmith in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2005, 12:05 PM

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