+ Reply to Thread
Results 1 to 7 of 7

3 columns; date and two data, problem is sorting and calculating with respect to date

  1. #1
    Registered User
    Join Date
    01-29-2008
    Posts
    4

    Question 3 columns; date and two data, problem is sorting and calculating with respect to date

    Hello Guys,

    I have three column data. First column is date, second and third are numerical data. I have 24 data entries per day on the first column (for every hour). I am trying to multiply second column with the third for each hour and get the total of these multiplications for the day and divide it by the total of second column for the same day.

    I am very confused. Can someone give me a hand?

    Thanks,

    Johnny

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

    Please Login or Register  to view this content.
    where A1:A22 contain dates and B1:C22 contain data....

    You can replace "Jan 1, 08" with a cell reference housing that date.
    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
    01-29-2008
    Posts
    4
    Quote Originally Posted by NBVC
    Something like:

    Please Login or Register  to view this content.
    where A1:A22 contain dates and B1:C22 contain data....

    You can replace "Jan 1, 08" with a cell reference housing that date.
    Thank you very much for your reply. I am still a little confused. ( I am a new user).

    I have attached an example file. Would you please look at it and put your line in it and show me? I have more than one 24 hour periods.

    That would be a great help and i would really appreciate it.

    Thanks,
    Attached Files Attached Files
    Last edited by phosphorescence; 01-29-2008 at 11:51 AM.

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

    I entered each individual date in E1:E4 and then applied this formula to F1 and copied down:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-29-2008
    Posts
    4
    Quote Originally Posted by NBVC
    see attached for what I meant....

    I entered each individual date in E1:E4 and then applied this formula to F1 and copied down:

    Please Login or Register  to view this content.

    That's awesome. I have a little question. When I ask excel to multiply each column and add them up and divide that with the classical sum, the result is 43.49795656 instead of 43.95625 (yours for Jan. 16th). Both cases excel does the calculations. The other dates are off a little too.

    Thanks,

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You're right...there's a problem with my formula....I didn't notice you had the times in column A also....

    amend my formula in F1 to:

    Please Login or Register  to view this content.
    this takes the "day" part only to compare against E1.

  7. #7
    Registered User
    Join Date
    01-29-2008
    Posts
    4
    Quote Originally Posted by NBVC
    You're right...there's a problem with my formula....I didn't notice you had the times in column A also....

    amend my formula in F1 to:

    Please Login or Register  to view this content.
    this takes the "day" part only to compare against E1.
    It works great now. Thank you very much for your help.

+ 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