+ Reply to Thread
Results 1 to 5 of 5

format a cell that i want to use [SOLVED]

  1. #1
    Registered User
    Join Date
    09-18-2008
    Location
    Australia
    Posts
    12

    format a cell that i want to use [SOLVED]

    Hi there,

    what im after is how to format a cell that I want to put a value in,

    Im after, in date format, in the B1 cell... if A1 is the same date as B1 then dont show a value in B1, if B1 is different

    B1 - A1 = C1 ( A1 = 09/05/2015, B1 = 10/05/2015 so C1 will = 1) but... if B1 doesnt have a date then I want B1 to be blank and C1 to be blank

    then i had to s............................................... ALL GOOD I GOT IT (in the C1 cell) =IF(B1="","",SUM(B1-A1))

    Even better I figured it out myself

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: format a cell that i want to use [SOLVED]

    hi ace_silver10. glad you have solved your problem. you could even exclude the SUM.
    =IF(B1="","",B1-A1)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: format a cell that i want to use [SOLVED]

    For what it's worth, you really dont need to use SUM to subtract 2 cells, you can just use...
    =IF(B1="","",B1-A1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    09-18-2008
    Location
    Australia
    Posts
    12

    Re: format a cell that i want to use [SOLVED]

    Oh well, now i know, and as you guys mention it i completely understand. Thanks

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: format a cell that i want to use [SOLVED]

    Apart from that, great job there

+ 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: 6
    Last Post: 08-02-2010, 04:05 PM
  2. [SOLVED] I want to stop excel deciding the number format of a cell for me
    By Litterarum in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  3. [SOLVED] [SOLVED] How do I set Excel cell format to "Text" from VB.NET?
    By John Brock in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-26-2005, 12:05 AM
  4. [SOLVED] [SOLVED] the dates on cell format make different dates.
    By date formats morph the dates/chang case in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 04-17-2005, 10:07 PM
  5. [SOLVED] Locking a cell's format, but not value
    By Tim Laplaca in forum Excel General
    Replies: 2
    Last Post: 01-17-2005, 04:06 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