+ Reply to Thread
Results 1 to 7 of 7

Problem using a data connection file - number formatting wont work in formula

  1. #1
    Registered User
    Join Date
    01-15-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    96

    Problem using a data connection file - number formatting wont work in formula

    I am using a data source connection file with columns of simple data. All of the columns calculate correctly with my formula because the decimal is in .25 increments. However, I have one column where the decimal points are not in .25 increments (.30, .60, etc) and that is causing a problem in the computation of the formula. If I change the number to a whole number or .25 decimal point it works fine. I have formatted in every way I can think of, but I have hit a brick wall. I believe it must have something to do with the fast that it is a connection file because if i do the same formula in the data source file, it brings in the number with no problem. Help!

    Here it the set up
    Format in both the data source connection file and the formula file is a NUMBER, and Decimal Point 2 places.

    In the Connection File, the columns are: A = Date, D = Employee Name, G = Point Value (G is the column where the number data is listed)

    In the Report (aka Formula File), the formula is =sumifs(G:G,D:D,"Specific Employee Name",A:A,"Specific Date")

    Hoping someone can help.
    Thank you in advance

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Problem using a data connection file - number formatting wont work in formula

    Hi Alphabex,

    Can you post an example - it is difficult to visualise what the issue is!

    Regards, David

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Problem using a data connection file - number formatting wont work in formula

    You're not alone. The question comes up here often.

    The formatting won't change the underlying data type. If numbers 'file' as text they will require coercing to numeric values to be summed. I'm guessing you get 0s.

    Try selecting column G and apply Data --> Text to Columns. Be sure to select General under Column data format, then Finish. This is usually sufficient to coerce the numeric values.

    Please let us know how this works for you. Sometimes other measures are called for.

    And yes a file is often helpful.
    Dave

  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,945

    Re: Problem using a data connection file - number formatting wont work in formula

    As Dave (not David) pointed out, formatting does not change teh actual cell contents, only the cosmetic view of how we would like to see it. There are 2 kinds of data in excel, numeric and text, and sometimes numbers get pulled in as text, even though they look like a number. Do a quick test of a few of them with =ISNUMBER(cell-ref) if you get a FALSE reply, then you are dealing with a text "number" and you will need to convert it back to a number.

    Do the test 1st and we can see what needs to be done to convert
    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
    01-15-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    96

    Re: Problem using a data connection file - number formatting wont work in formula

    Dave...that worked!!! oh thank you so much!!! you have saved me. (sorry for the delay in responding).

  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,945

    Re: Problem using a data connection file - number formatting wont work in formula

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Problem using a data connection file - number formatting wont work in formula

    Glad to hear it. You're welcome, thanks for the feedback and the rep.

    Oh, and it's never too late.

+ 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] Conditional Formatting wont work when I am using a formula
    By Jojojojo7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-23-2015, 08:13 AM
  2. Replies: 2
    Last Post: 05-15-2015, 04:12 PM
  3. Replies: 2
    Last Post: 05-12-2013, 03:18 PM
  4. [SOLVED] Excel Formatting wont work. Urgent help required.PLEASEEEEEEEEEEEEEEEEEEEEE.
    By Nikticia in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-09-2012, 09:18 AM
  5. Replies: 1
    Last Post: 07-09-2012, 10:08 AM
  6. Excel 2007 data connection not using connection file
    By algilstrap in forum Excel General
    Replies: 0
    Last Post: 06-09-2009, 03:01 PM
  7. [SOLVED] Conditional formatting code wont work
    By Robert Hargreaves in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2005, 09:40 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