+ Reply to Thread
Results 1 to 5 of 5

IF Formula with date and time variable using y axis (date) and x axis (time) as reference

  1. #1
    Registered User
    Join Date
    09-06-2012
    Location
    Nairobi, Kenya
    MS-Off Ver
    Excel 2007
    Posts
    21

    IF Formula with date and time variable using y axis (date) and x axis (time) as reference

    Dear All,

    Having a little issue with an IF formula in a time format but I also have to include dates in my formula.

    I have attached the input file (raw data on sheet 1 and output format on sheet 2).

    On table 1 (sheet 2), I would like to count the number of “CONNECTED” calls (column E) that are made within one hour intervals (column M) and within certain from sheet 1 . I want to use the date format for my rows and the time format for my column to simplify but not to sure how to go about that as well. I assume one can just show how an example in one cell and I can do the rest.

    I have attached the file for ease of understanding. My output file is on the next sheet labeled “output”

    Would really appreciate the help.

    Kindest Regards
    Muammar
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,673

    Re: IF Formula with date and time variable using y axis (date) and x axis (time) as refere

    Put in C6 and copy across and down

    =SUMPRODUCT((Input!$E$2:$E$95="CONNECTED")*(INT(Input!$F$2:$F$95)=Output!C$5)*(HOUR(Input!$F$2:$F$95)=HOUR(Output!$B6)))

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,673

    Re: IF Formula with date and time variable using y axis (date) and x axis (time) as refere

    Note that I changed the dates in Table 1 headings to actual dates (not text); Dates can be formatted in numerous ways but should always be entered in date format (01/07/2015 etc) so they can "processed" by formula.

    Just copy Table 1 headings to Table 2.

  4. #4
    Registered User
    Join Date
    09-06-2012
    Location
    Nairobi, Kenya
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: IF Formula with date and time variable using y axis (date) and x axis (time) as refere

    Thank you very much for the help John. Very helpful.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,673

    Re: IF Formula with date and time variable using y axis (date) and x axis (time) as refere

    Can you mark this as solved if you have the solution.

+ 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. Line chart with time (mm:ss) on Y axis, and date on X axis
    By Epitome_Inc in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-28-2015, 02:36 PM
  2. How to Set Horizontal Axis to Time date in Bar chart
    By jpa1234 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-31-2013, 10:35 AM
  3. Date + time on X-axis, value on Y-axis
    By d_abbatelli in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-01-2013, 07:08 AM
  4. [SOLVED] Chart showing date and names on a time axis
    By D-smoke in forum Excel Charting & Pivots
    Replies: 24
    Last Post: 10-30-2012, 10:18 AM
  5. using date & time in the x axis of a graph
    By sjhonny in forum Excel General
    Replies: 2
    Last Post: 01-18-2007, 09:39 AM
  6. [SOLVED] Manually Setting Date/Time Range of Axis
    By pittpanther in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-19-2005, 11:05 PM
  7. Date and Time on X-axis
    By cdoughty in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-24-2005, 10:05 AM

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