+ Reply to Thread
Results 1 to 7 of 7

Problem displaying correct data.

  1. #1
    Registered User
    Join Date
    10-10-2007
    Posts
    18

    Problem displaying correct data.

    Hi all,

    Im still working on creating the same spreadsheet that I had a problem with yesterday, however another problem has arisen. I don't believe there's a way to attach a spreadsheet with the info as this is all highly sensitive and it's all tied together, so I''ll explain it the best I can.

    I'm entering the following formula:

    =SUM(IF(Terms!$I$2:$I$598=Roster!$T$15,IF(Terms!$G$2:$G$598=Roster!$O23,1,0),0))

    What I'm looking for the sum of (Terminations) data for any given month (which is what column I in my terms worksheet references through the Roster entry T15, which is a drop down list for all the months in a year), as well as the reason for the termination (referenced from the term reason column G in the Termination worksheet, which matches with Roster entry O23). This gives me an absolute number of terminations for month "x" in regards to reason "y" (Ive only listed one here to keep it simple).

    Here's the interesting part: It works some of the time. What I mean is, is when I select anything from january to august, it reports back some of the terminations but not all of them. For Sept and October it reports nothing at all. I've made sure all the formatting and entries are exact on both worksheets and still a no go. If anyone can help I'd appreciate it.
    Last edited by VinceValdez12; 10-11-2007 at 02:06 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by VinceValdez12
    Hi all,

    Im still working on creating the same spreadsheet that I had a problem with yesterday, however another problem has arisen. I don't believe there's a way to attach a spreadsheet with the info as this is all highly sensitive and it's all tied together, so I''ll explain it the best I can.

    I'm entering the following formula:

    =SUM(IF(Terms!$I$2:$I$598=Roster!$T$15,IF(Terms!$G$2:$G$598=Roster!$O23,1,0),0))

    What I'm looking for the sum of (Terminations) data for any given month (which is what column I in my terms worksheet references through the Roster entry T15, which is a drop down list for all the months in a year), as well as the reason for the termination (referenced from the term reason column G in the Termination worksheet, which matches with Roster entry O23). This gives me an absolute number of terminations for month "x" in regards to reason "y" (Ive only listed one here to keep it simple).

    Here's the interesting part: It works some of the time. What I mean is, is when I select anything from january to august, it reports back some of the terminations but not all of them. For Sept and October it reports nothing at all. I've made sure all the formatting and entries are exact on both worksheets and still a no go. If anyone can help I'd appreciate it.
    How are the dates entered in column I.... i.e. if you click on a date what does it look like in the formula bar? Also, where are the months in the drop down list coming from and how are those entered. Are they simply text entries like "January", "February", etc...?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-10-2007
    Posts
    18
    Column I is a manual text entry and are spelled out in their entirity. The value in T15 is just a list of data containing the months in order.

    **EDIT: I just tried copying the drop down data and making it identical in both places, and it still does the same thing.
    Last edited by VinceValdez12; 10-11-2007 at 03:34 PM.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by VinceValdez12
    Column I is a manual text entry and are spelled out in their entirity. The value in T15 is just a list of data containing the months in order.
    ...And your sure there are no spaces any of the data?

    Does this revision work?

    =SUM(IF(TRIM(Terms!$I$2:$I$598)=TRIM(Roster!$T$15),IF(TRIM(Terms!$G $2:$G$598)=TRIM(Roster!$O23),1,0),0))

  5. #5
    Registered User
    Join Date
    10-10-2007
    Posts
    18
    I just checked all the spacing and formatting again and it's all identical.

    here's another interesting "feature" that's happening (I'm using office 2000, by the way):

    When I go into Insert > Function and the formula you provided is layed out, the data result there shows the correct number but it's not outputting it to the table.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You know that formula must be confirmed with CTRL+SHIFT+ENTER to get it to work, right?

    Also, does the cell that you are putting the result in have any formatting applied?

    If these don't work, then without seeing the sheet, it's hard to say what might be wrong with it.

    Here's the Sumproduct version of your formula. Does it make a difference?

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-10-2007
    Posts
    18
    The sumproduct works. Im not sure what's wrong with it the trim formula but I
    'll go with this... I feel like I owe you part of my check Thanks again.

+ 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