+ Reply to Thread
Results 1 to 11 of 11

Need Help Understanding These Two Formulas

  1. #1
    Registered User
    Join Date
    07-05-2014
    Location
    Orlando, FL
    MS-Off Ver
    2010
    Posts
    31

    Need Help Understanding These Two Formulas

    Hello All,


    I am pretty new to excel and needed to understand the following two formulas. Can anyone simplify this for me in English term? This is calculating a Numerator and a denominator of Sales Volume of people with credit scores between 350 and 599.

    1) Numerator: WAF_LT600_num: Sum(IIf([fico] Between 350 And 599,IIf([sales_volume]<0,0,[SALES_VOLUME]*[FICO]),0))

    2) Denominator: WAF_LT600_denom: Sum(IIf([fico] Between 350 And 599,IIf([SALES_VOLUME]<0,0,[SALES_VOLUME]),0))

    I noticed that they are almost the same, except the first one includes a [Sales Volume]*[FICO] and the second one has [Sales Volume] by itself.

    Thank you very much for your help!

    Hendrix -
    Last edited by 6StringJazzer; 04-17-2015 at 03:36 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Need Help Understanding These Two Formulas

    Those dont look like excel formulas, where did they come from?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Need Help Understanding These Two Formulas

    Those appear to be Access formulas (for use in a query).

    The first portion of the formula is checking to ensure Fico is between 350 and 599 and the second portion checks if the sales_volume is not negative. If these checks work, then the calculation is made, if not then it gives a 0.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  4. #4
    Registered User
    Join Date
    07-05-2014
    Location
    Orlando, FL
    MS-Off Ver
    2010
    Posts
    31

    Re: Need Help Understanding These Two Formulas

    Hello, thanks for the reply. However arent they both checking that Sales is not negative and between 350 and 599? What I am trying to understand is I noticed that they are almost the same, except the first one includes a [Sales Volume]*[FICO] and the second one has [Sales Volume] by itself.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Need Help Putting this into English Terms

    Where are you getting this from?

    In English the first one simply says If FICO is between 350 and 599, then go to the next test to figure out the result; if it is not between those numbers, the result is 0. The next test is if sales volume is negative use 0 as the result, otherwise use sales volume x FICO.

    As you note the second one is the same except it does not multiply by FICO.

    This whole thing makes no sense to me because if FICO is between 350 and 599, and sales volume >= 0, then the numerator divided by the denominator (presumably you are calculating these to be able to do that division) is

    (Sales Volume) x (FICO) / (Sales Volume)

    Which is simply FICO. I don't know why a division is necessary. (If the conditions aren't met then the result will be 0, or possibly a divide-by-zero error.)
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Need Help Understanding These Two Formulas

    Perhaps you missed my post #2?

    Apparently, Numerator is taking SALES_VOLUME times FICO, while Denominator is not

  7. #7
    Registered User
    Join Date
    07-05-2014
    Location
    Orlando, FL
    MS-Off Ver
    2010
    Posts
    31

    Re: Need Help Understanding These Two Formulas

    Yes Ford, but I do not understand VBA stuff. what I wrote may not make sense to you, but this formula is designed to take a weighted average (SumProduct/sum) to get a percentage. This is what i am trying to understand.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Need Help Understanding These Two Formulas

    Like I said - where do they come from?

  9. #9
    Registered User
    Join Date
    07-05-2014
    Location
    Orlando, FL
    MS-Off Ver
    2010
    Posts
    31

    Re: Need Help Understanding These Two Formulas

    Its a Sales Quality Analysis calculation at my job. What is it that you are trying to get a deeper knowledge about and I will tell you.

  10. #10
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Need Help Understanding These Two Formulas

    Ford has asked you three times now, are these Excel formulas or are they Access formulas?
    To clearify: what software do these formulas of yours appear in?
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Need Help Understanding These Two Formulas

    henrock24, please take the time to review our rules. There aren't many, and they are all important.

    You have asked this question multiple times in different forums and I have closed some duplicates. In this case I moved the thread from Excel to Access, and then merged it with a duplicate that had a response in it (post #6 above).

    Please do not submit any more duplicate threads. It's against the rules.

+ 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. New to array formulas. Not understanding nested sum if
    By stevekbluesnap in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2014, 05:50 PM
  2. Understanding the syntax of certain formulas
    By jnorthway in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-07-2013, 10:08 PM
  3. Help needed understanding formulas
    By redcougar78 in forum Excel General
    Replies: 4
    Last Post: 05-23-2012, 02:17 PM
  4. Understanding COUNTIF Formulas
    By Tweetie in forum Excel General
    Replies: 3
    Last Post: 03-26-2009, 11:03 PM
  5. [SOLVED] [SOLVED] I'm having problems understanding the formulas in Excel
    By Gueni in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-28-2006, 09:10 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