+ Reply to Thread
Results 1 to 5 of 5

Formula Fails to Choose() From Name Range & Results To #Div/0

  1. #1
    Registered User
    Join Date
    12-27-2006
    Posts
    8

    Formula Fails to Choose() From Name Range & Results To #Div/0

    Hello, can you please help me understand why the formula is resulting in #div/0 & not the desired average even though I have name ranges for each column ? I have the ISERROR Exception for the #Div/0. However, it works if I use a literal hour for the aHours where the Choose() is.



    Please Login or Register  to view this content.

    Date Day_of_Week Hourly_Hours Headcount
    02/20/2010 23:00 Saturday 23 275
    02/20/2010 23:00 Saturday 23 300
    02/13/2010 23:00 Saturday 23 300
    Attached Files Attached Files
    Last edited by NBVC; 02-25-2010 at 05:36 PM. Reason: data

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

    Re: Formula Fails to Choose() From Name Range & Results To #Div/0

    It would be better to see the workbook in question...

    Why does the 23 have quotes around it...

    Do you need to format ahours as number? or have all those entries in the Choose function with quotes...

    Also, the Choose (weekday(),"Monday","Tuesday", etc) function can probably be replace with just TEXT(B2,"DDDD")
    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
    12-27-2006
    Posts
    8

    Re: Formula Fails to Choose() From Name Range & Results To #Div/0

    I tried using the quotes to see if that helped. I Formated all columns as well. I actually started with Text(B2, "DDDD"). But thought Choose() would help match with the hour column.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula Fails to Choose() From Name Range & Results To #Div/0

    Can you show sample expected outcomes and explain what exactly you are trying to do.. in words.

  5. #5
    Registered User
    Join Date
    12-27-2006
    Posts
    8

    Re: Formula Fails to Choose() From Name Range & Results To #Div/0

    The goal is to plot a 3-line graph with 0-23 being the x-axis & total head counts, Avg head counts by weekday&hr, & then avg head counts by weekday & hr & siteid beig the Y-axis. I ran into trouble starting from the pivot table. So now I'm graphing from the 3 ranges.

    Weekday Hourly_Hour Average 'Head Count' TOTAL AVG/SITEID/HR
    SFO 02/12/2010 00:00 Friday 0 26 17.67 38.6
    SFO 02/05/2010 00:00 Friday 0 15 17.67 38.6
    SFO 01/29/2010 00:00 Friday 0 12 17.67 38.6
    LAX 08/21/2009 00:00 Friday 0 76 70 38.6
    LAX 08/14/2009 00:00 Friday 0 64 70 38.6
    Last edited by ackrite55; 02-25-2010 at 05:24 PM.

+ 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