+ Reply to Thread
Results 1 to 6 of 6

How to use IF condition to choose minutes.

  1. #1
    Registered User
    Join Date
    12-13-2012
    Location
    bangalore, india
    MS-Off Ver
    Excel 2003
    Posts
    3

    How to use IF condition to choose minutes.

    I have list of time (elapse time) in cells where I want to choose and hide only the rows with 30 minutes.

    Eg:
    0:00
    0:30
    1:00
    1:30
    2:00
    2:30
    3:00
    3:30
    4:00
    4:30
    5:00
    5:30
    6:00
    6:30
    7:00
    7:30
    8:00
    8:30
    9:00
    9:30
    10:00


    Thanks in advance

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: How to use IF condition to choose minutes.

    Is it needs to be performed only on 0:30 or something with this 1:30, 2:30, 4:30.

    Please provide some more details about column reference and if possible attach a sample workbook for better understanding.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: How to use IF condition to choose minutes.

    Not sure what you mean by "hide" them, but in another column you could try this formula, which should hide the time ending in 30 minutes. results will be decimals, but you can format that to h:mm...

    With your times starting in A1, put this in B1 and fill down your list of times:

    =IF(MINUTE(A1)=30,"",A1)

    - Moo

  4. #4
    Registered User
    Join Date
    12-13-2012
    Location
    bangalore, india
    MS-Off Ver
    Excel 2003
    Posts
    3

    Post Re: How to use IF condition to choose minutes.

    Thanks for u both

    I have attached a worksheet for your reference.

    I will get Date, Time and RTD values
    I want to plot a graph for RTD values at every one hour ( 1.00, 2.00, 3.00 ……)
    I need to hide the rows with log hr of 30 minutes.
    How can I use excel functions / command to highligh / hide / delete log hours with 30 minutes ?
    Attached Files Attached Files

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: How to use IF condition to choose minutes.

    Try the below code in standard module and Press Alt+F8 to run the macro

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-13-2012
    Location
    bangalore, india
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How to use IF condition to choose minutes.

    Thanks for your suggesstion Sixthsense . Its working fine

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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