+ Reply to Thread
Results 1 to 5 of 5

Nested functions not calculating with"text" or providing value... HELP!

  1. #1
    Registered User
    Join Date
    11-03-2015
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2010
    Posts
    63

    Exclamation Nested functions not calculating with"text" or providing value... HELP!

    Hello all,

    I created a "calculator" to determine the lesser of value (I8) out of three different values (F7, F8, & F9), so that I can compare that smallest value (I8/F12) to the value I have on file (F15) for each client.
    If there is a difference in those values, I need to know if it exists (I12) and the value of that difference, taking into account two threshold values (I13).

    My calculator works just fine for each "threshold value" I am using.

    However, when I attempt to combine my formulas, I get a #VALUE! error for GAP Required, which I am assuming it's because of the text in the string and a TRUE value for the Amount Required, when I'm actually looking for a numeric value.

    Calculator Tab, $5000 threshold.
    I12
    Please Login or Register  to view this content.
    I13
    Please Login or Register  to view this content.

    RMS Tab, $1000 Threshold
    I12
    Please Login or Register  to view this content.
    I13
    Please Login or Register  to view this content.
    This are the formula's I combined that are proving to be troublesome, Sheet 1:
    I12
    Please Login or Register  to view this content.
    I13
    Please Login or Register  to view this content.


    For purposes of this post, my attachment has THREE tabs. Tab 1 - Calculator with $5,000 threshold for specific account numbers. Tab 2 - Calculator with $1,000 threshold for specific account numbers. Tab 3 - Calculator with formulas above and combined formula as well to test.

    Lesser Of Calculator 2.xlsx

    Thank you for any and all help!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,364

    Re: Nested functions not calculating with"text" or providing value... HELP!

    The AND should be OR and in the following format:

    OR(D4=2301,D4=2303,D4=2304,D4=2305,D4=6900)

    You need to revise all the formulae

    =IF(OR(AND(D4=2301,2303,2304,2305,6900),AND(D4=3057,3058,3059,3060,3061,3062,3063,3069,3070,3071,3072,3073,3074,3075,3101,3164,3212,4810,4814,7358,7359,7360)),OR(IF((F15+5000)<F12,"Yes","N/A"),IF((F15+1000)<F12,"Yes","N/A")),OR(IF(F15<F12,"Yes","N/A"),IF(F15<F12,"Yes","N/A")))

    Not sure what the above is trying to do with all the values for D4 ???? but AND conditions need to be OR.

  3. #3
    Registered User
    Join Date
    11-03-2015
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2010
    Posts
    63

    Re: Nested functions not calculating with"text" or providing value... HELP!

    Thanks for your reply JohnTopley.

    All the different values are needed because when I use this calculator, I need to specify the account.

    Clients 2301,2303,2304,2305,6900 have a threshold of $5k.
    Clients 3057,3058,3059,3060,3061,3062,3063,3069,3070,3071,3072,3073,3074,3075,3101,3164,3212,4810,4814,7358,7359,7360 have a threshold of $1k.
    All my other clients DO NOT have thresholds when determining flood coverage.

    So for instance, if I enter any of the client numbers in the first set above, it should calculate if GAP is required taking into account the $5k.
    i.e. Lesser Of = 125,000. LKFCA = 120000. Because the difference in coverage is at $5k, GAP required will reflect no, and no value will populate for coverage amount.

    If I enter any of the client numbers in the second set above, it should calculate if GAP is required taking into account the $1k.
    i.e. Lesser Of = 125,000. LKFCA = 124000. Because the difference in coverage is at $1k, GAP required will reflect no, and no value will populate for coverage amount.

    I need to somehow combine my already working formulas to take into account clients in set #1 and their $5k threshold, or clients in set #2 and their $1k threshold, or clients without a threshold, which would just calculate the difference between the Lesser Of and LKFCA.

    Can you explain what you mean by all the AND need to be ORs?

    Hope this helps.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,364

    Re: Nested functions not calculating with"text" or providing value... HELP!

    To select a client it has to be an OR condition

    i,e, Client A OR Client B OR Client C as a client cannot be A AND B AND C.

    Consider creating a table of clients with their corresponding thresholds and Use VLOOKUP to determine the limit. If client is not in the table "error" condition - they are by default the clients without a threshold.

    Look at VLOOKUP function.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,364

    Re: Nested functions not calculating with"text" or providing value... HELP!

    See the attached.

    I have used a table of clients (named range "Client_tbl")and categorised them as "1" or "2" then used VLOOKUP to determine what is required. You check these out because I found the AND/OR formulae rather confusing.

    In Sheet1 E19

    =IF(IFERROR(VLOOKUP($D$4,Client_Tbl,2,0)=1,"N/A"),IF($F$15+5000<$F$12,"Yes",IF($F$15<$F$12,"Yes","N/A")),"")

    in E20

    =IFERROR(IF(AND(VLOOKUP($D$4,Client_Tbl,2,0)=1,$I$12="Yes"),$F$12-$F$15-5000,$F$12-$F$15),"N/A")

    in E28

    =IFERROR(IF(VLOOKUP($D$4,Client_Tbl,2,0),IF($F$15+5000<$F$12,"Yes",IF($F$15+1000<$F$12,"Yes",IF($F$15<$F$12,"Yes",IF($F$15<$F$12,"Yes","N/A"))))),"N/A")

    in E29

    =IFERROR(IF(AND(VLOOKUP($D$4,Client_Tbl,2,0)=1,$I$12="Yes"),$F$12-$F$15-5000,IF(AND(VLOOKUP($D$4,Client_Tbl,2,0)=1,$I$12="Yes"),$F$12-$F$15-5000,$F$12-$F$15)),"")
    Attached Files Attached Files

+ 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. Tired of having 259 "IF" functions nested in a single cell
    By Selko in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-14-2014, 11:55 AM
  2. Alternative for using more nested "'IF"functions
    By Henryoung in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-19-2013, 10:55 AM
  3. Nested "IF" "AND" "OR" Functions
    By Cppaints3 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-15-2013, 08:35 PM
  4. If ("Q") = "Text" then multiple functions help (2007)
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2012, 01:52 PM
  5. [SOLVED] Excel 2007 : "AND", "OR" functions nested with "IF"
    By Buscador in forum Excel General
    Replies: 5
    Last Post: 04-11-2012, 09:54 PM
  6. Multiple "nested" functions in a spreadsheet - Solved
    By givea in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-26-2009, 10:10 AM
  7. nested functions in an "IF" statement
    By samsebastian in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2008, 03:13 PM
  8. Replies: 5
    Last Post: 06-26-2006, 09:23 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