+ Reply to Thread
Results 1 to 4 of 4

formula in an IF function doesn't work, syntax?

  1. #1
    Registered User
    Join Date
    11-29-2009
    Location
    oregon
    MS-Off Ver
    Excel 2003
    Posts
    5

    formula in an IF function doesn't work, syntax?

    Here is the formula I am trying to make work: =IF(L6>55000,"(((L6-55000)/1000)*2.1809)+(55*1.69)","((L6/1000)*1.69)") which I built using the formula builder but the result just keeps returning the formula in the cell where I entered it. I can make the formula parts work individually, but they fail when I put it all together in the IF.

    I have a situation where we pay 2 different rates per thousand depending on how much a we use. The 1st 55 thousand costs 1.69 per thousand, all that used above 55 thousand costs 2.1809 per thousand. Since the amounts vary both less than 55 thousand and above 55 thousand, I need to test and then apply the correct formula(s) to get the result.

    L6 has a value of 65,000. If it is greater than 55,000 I want to calculate the amount used greater than 55,000 and apply the correct rate per thousand for that usage and then apply the correct rate for the 1st 55 thousand used and add the 2 results together > the TRUE IF, otherwise I just want to apply the less than 55 thousand rate to amount used, the FALSE IF.



    so
    65,0000 - 55,000 = 10,000/1000 x 2.18 for the amount over 55,000 plus 55*1.69 for the 55,000. Since in the example L6 is 65,000 the formula parts for TRUE should be 10*2.18 + 55*1.69 = 20.18 + 92.95 and the cell with formula should display 113.13; I rounded this example a little.

    I know I am missing something easy here, just don't know what. Thank you for looking showing me where I screwed up.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: formula in an IF function doesn't work, syntax?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: formula in an IF function doesn't work, syntax?

    Hi,

    One way

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: formula in an IF function doesn't work, syntax?

    My pleasure and thanks for the rep.

+ 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] IF+AND function doesn't work
    By toci in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2015, 03:34 PM
  2. [SOLVED] IF+AND function doesn't work
    By toci in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2015, 03:30 PM
  3. [SOLVED] Syntax Compile Error - How to work around this (file path doesn't exist)
    By Harribone in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-18-2015, 08:19 AM
  4. [SOLVED] Rank function using "array IF" formula as ref doesn't seem to work
    By vizzkid in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2014, 09:47 AM
  5. Auto-complete formula function doesn't work properly
    By malahe in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-18-2014, 10:04 AM
  6. Simple AND function - why doesn't it work?
    By rojo1221 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-16-2013, 12:41 AM
  7. NZ function doesn't work!
    By salut in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2006, 03:50 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