Closed Thread
Results 1 to 2 of 2

Struggling with nested IF formula

  1. #1
    Registered User
    Join Date
    10-22-2019
    Location
    Manchester England
    MS-Off Ver
    365
    Posts
    10

    Struggling with nested IF formula

    Hi

    I posted here on Tuesday, but have been away. Thought it better to post again.

    I am writing a calculation sheet which simply compares values:

    * If the difference between L2 and B2 is >=10, then the value is L2.
    * If the difference between L2 and B2 is >=6 AND <10, then the value is the logarithmic equation
    * If the difference between L2 and B2 is <6, then there is a simple subtraction of 1.3 from L2

    Here's the formula I am using: =IF(L2-B2>=10,L2,IF(L2-B2<6,L2-1.3,IF(AND(L2-B2>6,L2-B2<10),10*LOG((10^(L2/10))-(10^(B2/10))))))

    When I use real data, the above corrections do not seem to work. So, I am sure I have done something fundamentally wrong. I'm just not experienced enough to figure it out. Can any of you experts help?

    Many thanks, for what must seem ultra-trivial.

    Raz

  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,669

    Re: Struggling with nested IF formula

    Administrative Note:

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-for...functions.html
    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.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Struggling with a Time Formula
    By EDMONDO66 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2018, 03:40 PM
  2. Struggling with IF formula on my golf spreadsheet
    By m77wls in forum Excel General
    Replies: 4
    Last Post: 09-15-2015, 11:52 AM
  3. [SOLVED] Struggling with excel formula
    By olegmcnoleg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-13-2014, 06:37 AM
  4. [SOLVED] Vlookup check - struggling with formula
    By JEB in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-24-2014, 07:31 AM
  5. [SOLVED] Struggling with COUNTIFS formula - help!
    By Joey_997 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2014, 10:54 AM
  6. I'm struggling to get a formula to populate a list
    By Macjay22 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-30-2013, 07:37 PM
  7. struggling with lastrow formula
    By skalaima in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-16-2013, 02:05 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