+ Reply to Thread
Results 1 to 2 of 2

How do I put the if function inside the lookup? - Daily Routine sheet

  1. #1
    Registered User
    Join Date
    11-22-2010
    Location
    Mumbai
    MS-Off Ver
    Excel 2003
    Posts
    2

    How do I put the if function inside the lookup? - Daily Routine sheet

    I have a sheet - daily routine which has two columns: activity and time as shown here

    | Activity | Time |
    |----------------------|----------|
    | Sleep 😴 | 6:00 am |
    | Toilet 🚽 | 6:15 am |
    | Get ready for gym 🤸*♂️ | 6:30 am |
    | Exercise 💪 | 7:50 am |
    | ... more things | 9:00 pm |
    | ... still more | 10:45 pm |
    | Sleep 😴 | 6:00 am |

    Here, say my toilet time would be from 6:00am to 6:15am
    I want to find out, say in C1 which activity is current for me using now()
    I.e., if it’s 6:45am on my watch, it should show me Exercise 💪 in C1

    Using the if function for time comparison and a lookup should solve my requirement, right?
    Please help. How do I put the if function inside the lookup?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: How do I put the if function inside the lookup? - Daily Routine sheet

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Administrative Note:

    Members will tailor the solutions they offer to the version (NOT release number) of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Calling a function inside a sub routine
    By woodworkingpa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2018, 02:19 PM
  2. If statements inside Lookup function or use VBA to solve an issue
    By eddthebed in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-29-2016, 01:48 PM
  3. [SOLVED] Excel 2016 Sort routine issue - recording macro has sheet name in sort routine
    By pongmeister in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-05-2016, 02:45 PM
  4. barcodes handling as daily routine
    By jacohauritz in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 08-09-2016, 12:43 PM
  5. [SOLVED] Perform daily routine without opening Workbook
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-26-2013, 07:02 PM
  6. Replies: 2
    Last Post: 06-14-2010, 03:28 PM
  7. Unprotect an excel sheet from inside a function
    By Typicalalex1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2010, 02:28 PM

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