+ Reply to Thread
Results 1 to 4 of 4

If/Then Statement Return Value Question

  1. #1
    Registered User
    Join Date
    02-19-2021
    Location
    Naperville, Illinois
    MS-Off Ver
    Excel Version 2008
    Posts
    10

    Question If/Then Statement Return Value Question

    Good afternoon,

    First post here, so I apologize if this is already a topic previously covered.
    I am working in a workbook and have written some conditional formatting wherein if the date listed in one cell is earlier/later than the date in another cell, it should return either the value of another specific cell or a value of zero.

    So, for instance, if the date in cell H7 is later than the date in cell A12, the value returned for a true statement should be the value of cell $C$7 or if false, the value should equal $0.00. While the statement "works," essentially, the returned values are coming up as either "$C$7" (rather than the actual value of that cell) or "0" (rather than a $0 in accounting format).

    Hopefully I have adequately explained this, and if so, could anyone advise me on how to proceed?
    Kind thanks,
    Dina

    p.s., here is the statement wording: =IF(A12<$H$7, "$C$7","0")
    Last edited by BirdPerson1969; 02-19-2021 at 02:02 PM. Reason: to add the if/then statement

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: If/Then Statement Return Value Question

    Lose the quote ""

  3. #3
    Registered User
    Join Date
    02-19-2021
    Location
    Naperville, Illinois
    MS-Off Ver
    Excel Version 2008
    Posts
    10

    Re: If/Then Statement Return Value Question

    That did the trick, thank you so much!

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: If/Then Statement Return Value Question

    You're welcome.

+ 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. If Statement Question
    By jharvey87 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-20-2018, 02:12 PM
  2. [SOLVED] IF statement to return 0 if 0 in cell if not return formula
    By CraigieL in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-15-2013, 09:46 AM
  3. Question on How to return Maximum value out of a Conditional Statement
    By czou6 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-13-2013, 03:36 PM
  4. IF statement question
    By sbhattacharya99 in forum Excel General
    Replies: 2
    Last Post: 03-16-2012, 11:52 AM
  5. Have question about using .find statement and brackets around After:= statement
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-09-2011, 03:28 PM
  6. IF statement question
    By [email protected] in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-24-2006, 11:25 AM
  7. [SOLVED] IF Statement Question
    By Scott in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM

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