+ Reply to Thread
Results 1 to 3 of 3

Multiple IF format

  1. #1
    Registered User
    Join Date
    12-12-2019
    Location
    Sydney, Australia
    MS-Off Ver
    2019
    Posts
    1

    Multiple IF format

    Hi All,
    I am trying to set up a timesheet for work using the following formula



    =IF
    ($A$8<>,
    (if
    ($D$6>=$D$5+TIME(8,0,0),
    8,0)
    ),
    "")

    a basic rundown is that my 2nd "IF" string works, just trying to make it work with the 1st one

    IF A8 has data - continue second IF string
    IF A8 is blank - enter blank value

    IF difference between D6 and D5 is greater than 8 - input 8
    IF difference between D6 and D5 is less than 8 - input the difference,

    If there is no way to make this work is there another option?

    Thanks in advance
    Attached Images Attached Images
    Last edited by davesexcel; 12-12-2019 at 04:28 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Multiple IF format

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor SCLai's Avatar
    Join Date
    08-18-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: Multiple IF format

    Hi Vday,

    I'm not very sure but perhaps is it because you did not place a pair of " to represent blank?
    =IF ($A$8<>"", (if ($D$6>=$D$5+TIME(8,0,0), 8,0)),"")

    On my side, the formula you have came up with worked perfectly fine with the added "".
    Attachment 653646

    Edit: Should have refreshed before posting after idling for an hour but like what TMS has stated, it should be the pair of double quotes.
    Do give a * (bottom left) if the post helped!

+ 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. One format button to run multiple format buttons on different sheets
    By PsychicFish in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-26-2016, 08:05 AM
  2. Multiple Hyperlinks - Multiple Downloads in a similar format
    By Callumpwm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2016, 10:49 AM
  3. Replies: 0
    Last Post: 08-13-2015, 06:23 AM
  4. Replies: 1
    Last Post: 07-03-2014, 06:33 AM
  5. Macro to open multiple files, remove header and save multiple files in a new format
    By twocircles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2014, 05:24 PM
  6. Format multiple worksheets in multiple workbooks
    By Errol Isenberg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2014, 09:20 PM
  7. Save Multiple Excel Sheets from a Workbook into Multiple Text Macintosh Format VBA
    By ashokpatidar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2013, 10:04 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