+ Reply to Thread
Results 1 to 5 of 5

Difference between dates with now() AND only filter collumn results with data

  1. #1
    Registered User
    Join Date
    07-14-2015
    Location
    lisbon
    MS-Off Ver
    2016
    Posts
    68

    Difference between dates with now() AND only filter collumn results with data

    Hi everyone,

    I have 2 problems that i would need help with:

    1 - I have a start date and time that i want to subtract to a end date and time. It works if i place the start date and time manually, but since i want to use start date with today function and start time with now function, it doesnt work this way...

    2- I have a sheet with many prices (horizontal) and clients (vertical), i know, using excel online and office 365, use filter function, but the problem is that i have more than 2 collumns and i would like a way, after choosing the client, only appears the collumns with data and ignore the others.

    I have an example file so you can see better what i am trying to explain.

    Can someone help please?
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-23-2014
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel Office 365
    Posts
    32

    Re: Difference between dates with now() AND only filter collumn results with data

    Hi,
    Here's the formula i used for the dates: =CONCATENATE((B4-B8)," days ",TEXT((C4-C8),"HH:MM")," hours") It can probably be more efficient or pretty but it works.
    Not sure i can help with the second request without a bunch of IF statements but again i'm sure it's doable.

    Hope this helps
    LouisT
    Attached Files Attached Files

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Difference between dates with now() AND only filter collumn results with data

    the function NOW() gives not only time but also the date. if you change cell C4 to

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    will give you only the time.

    but you could also change the formula to only substract C4 and not B4 also
    so then keep current formula of C4 and change -(B4+C4) into -C4
    in celll C10
    Last edited by Roel Jongman; 01-21-2020 at 06:35 PM.

  4. #4
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Difference between dates with now() AND only filter collumn results with data

    See my response to the same question at https://www.mrexcel.com/board/thread...h-data.1121396 .

  5. #5
    Registered User
    Join Date
    07-14-2015
    Location
    lisbon
    MS-Off Ver
    2016
    Posts
    68

    Re: Difference between dates with now() AND only filter collumn results with data

    Many thanks to all of you for the help, regarding the time question.

    Can someone help please regarding the filter question please?

    Regards.

+ 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. Replies: 2
    Last Post: 06-15-2018, 11:43 AM
  2. Filter Data and Format Results - VBA
    By avmax in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-15-2017, 03:42 AM
  3. Formula to filter results from data
    By iantix in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 04-11-2017, 10:36 AM
  4. [SOLVED] Find a collumn in a dynamic sheet and select the entire collumn
    By Armand0 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2014, 11:20 AM
  5. Replies: 0
    Last Post: 09-27-2012, 01:38 AM
  6. Using filter when the collumn contains empty cells
    By Bandini in forum Excel General
    Replies: 2
    Last Post: 04-25-2012, 09:13 AM
  7. Replies: 3
    Last Post: 03-31-2010, 11:47 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