+ Reply to Thread
Results 1 to 2 of 2

Whats wrong with this function: =IF(C12=30,"f12","(f12/30)*c12")??

  1. #1
    Registered User
    Join Date
    07-31-2017
    Location
    erbil
    MS-Off Ver
    windows 7
    Posts
    1

    Whats wrong with this function: =IF(C12=30,"f12","(f12/30)*c12")??

    hi guys i am new here.
    Please let me know what is wrong with this function i have done like it is required it seems but it does not work.
    =IF(C12=30,"f12","(f12/30)*c12")
    Thanks for your help.
    Regards.
    Oleee
    Last edited by oleee; 07-31-2017 at 06:08 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: First time with IF function

    Should be

    =IF(C12=30,F12,F12/30*C12)

    Dont use quotes when referring to cell references, quotes only needed for text values.
    Brackets not needed since it won't change the result of the division or multiplication.
    Last edited by Special-K; 07-31-2017 at 06:10 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ 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. [SOLVED] elapse time function ( time entered with no colon).
    By jackm1249 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-23-2014, 02:09 PM
  2. Replies: 1
    Last Post: 03-28-2014, 12:45 PM
  3. IF function to work out Ordinary hours, Time 1/2 and Double time!!
    By Jazzy2009 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-13-2014, 11:32 PM
  4. [SOLVED] IF function: Early/On Time/Late Time vs. set window of time
    By hclark579 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2014, 05:37 PM
  5. [SOLVED] Extracted time from date/time field does not flag on =IF(TIME function.
    By Vlad717 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2013, 03:29 PM
  6. Date/Time Function in Excel (Day/Month/Year & time)
    By tortuga32 in forum Excel General
    Replies: 19
    Last Post: 12-14-2011, 02:00 AM
  7. Replies: 4
    Last Post: 03-23-2010, 12:44 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