+ Reply to Thread
Results 1 to 2 of 2

If statement checking last digit and modifying time

  1. #1
    Forum Contributor
    Join Date
    12-10-2014
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2205 Build 16.0.15225.20368) 64-bit
    Posts
    101

    If statement checking last digit and modifying time

    Hello,

    I am working on a way to look for the last digit in column B of my spreadsheet which is the game indicator (0, 1, 2) and take that number and convert it to a time that is within column A.

    I have attached my workbook. For example, in column B, if the last digit equals a zero, I would like to keep the time as 12:00 AM in column A. If the last digit is a 1 in column B, I would like for the time to change in column A to 6:00 AM. If the last digit is a 2 in column, I would like for the time in column A to change to 12:00pm.

    Is there a way also to have this work across all worksheets within the workbook as well. Anyone who help me with creating a solution for this I would greatly appreciate it.
    Attached Files Attached Files

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

    Re: If statement checking last digit and modifying time

    Unfortunately, your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    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. Convert 3 digit or 4 digit number to time format
    By dubcap01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-04-2015, 04:30 AM
  2. Help Modifying IF Statement
    By NoMotion in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-05-2015, 10:04 PM
  3. [SOLVED] LOTTERY FILTER#4, Find if 1 Digit Sum of 2 Digit or 3 Digit, Single Cell w/ dash
    By david gonzalez in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-08-2014, 12:57 AM
  4. [SOLVED] Modifying =IF statement to ignore blanks
    By mrjinx007 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-31-2013, 10:05 AM
  5. Error checking: make sure that ID values increase by one digit at a time
    By vzc8 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-21-2011, 11:01 AM
  6. Converting 4 digit number to time unit and extrapolating time to run from there
    By shaunsul in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2011, 08:01 PM
  7. [SOLVED] Modifying an If Statement
    By carl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-01-2006, 04:15 PM

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