+ Reply to Thread
Results 1 to 4 of 4

Do nothing for a zero

  1. #1
    Registered User
    Join Date
    10-14-2015
    Location
    Essex
    MS-Off Ver
    Office 2010
    Posts
    13

    Do nothing for a zero

    Can someone guide me in the best formula to use to not do anything if a cell has a zero in it, but if a cell has a number greater than 0 in it, it goes and grabs information from another cell...

    i.e..... I want to put a date into cell C20 but not if D20 has a zero in it, as soon as D20 has any number greater than zero, then I want it to go to F20 and put the date from that cell into C20.

    Thank you so much in advance.

    Cheers

    Liam

  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
    80,878

    Re: Do nothing for a zero

    In C20:

    =IF(D20=0,"",IF(D20>0,F20,""))
    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.

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Do nothing for a zero

    Hi,

    In C20

    =IF(D20="0","",F20)

    Does that help?
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Registered User
    Join Date
    10-14-2015
    Location
    Essex
    MS-Off Ver
    Office 2010
    Posts
    13

    Re: Do nothing for a zero

    Fantastic and thank you, works a treat.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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