+ Reply to Thread
Results 1 to 10 of 10

Programming Conditional Formulas

  1. #1
    Registered User
    Join Date
    05-24-2012
    Location
    Lexington, SC
    MS-Off Ver
    Excel 2010 (MAC)
    Posts
    5

    Question Programming Conditional Formulas

    I have a set of numbers, and if a number falls within a certain range, the cell I'm programming needs to multiply the corresponding number by 28, and then be multiplied by the corresponding percentage according to where in the range it fell. Here's the chart:

    0-834 multiply by 77.4%
    835-865 multiply by 76.9%
    866-897 multiply by 76.5%
    898-929 multiply by 76.4%
    etc. etc. etc. for about fifty lines

    There are 47 different ranges that the number can fall into, so it'll be a rather large formula. So basically if the number is 855, it would first need to be multiplied by 28, and then multiplied by .769. If someone can get me started I'm sure I could fill in the blanks. Thanks for your help!!!

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Programming Conditional Formulas

    Hello
    maybe a table for the "Chart" then vlookup
    sam4roger.xlsx
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    05-24-2012
    Location
    Lexington, SC
    MS-Off Ver
    Excel 2010 (MAC)
    Posts
    5

    Re: Programming Conditional Formulas

    That's definitely the direction I should head, but I'm really not familiar with the vlookup feature. I definitely should get more comfortable with that! Thanks!!!

  4. #4
    Registered User
    Join Date
    05-24-2012
    Location
    Lexington, SC
    MS-Off Ver
    Excel 2010 (MAC)
    Posts
    5

    Re: Programming Conditional Formulas

    I think the formula you posted had the number multiplied by 28 before it was looked up in the chart. How would you multiply it AFTER the number is looked up? That's why the numbers are off I suppose.

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Programming Conditional Formulas

    From your given solution

    855 * 28 then .769 = 18409.86

    its correct in the formula(sample file)

    btw the vlookup will return the percentage .769


    =(855*28)*.769
    so
    =(A1*28)*vlookup(A1,A2:B10,2)
    Last edited by vlady; 05-24-2012 at 09:17 PM.

  6. #6
    Registered User
    Join Date
    05-24-2012
    Location
    Lexington, SC
    MS-Off Ver
    Excel 2010 (MAC)
    Posts
    5

    Re: Programming Conditional Formulas

    Here's what I've got so far...I can't figure out what I'm doing wrong...1767Budget.xlsx

  7. #7
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Programming Conditional Formulas

    You've included the "other column"

  8. #8
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Programming Conditional Formulas

    1767Budget.xlsx

    you've included the "other column in vlookup.

  9. #9
    Registered User
    Join Date
    05-24-2012
    Location
    Lexington, SC
    MS-Off Ver
    Excel 2010 (MAC)
    Posts
    5

    Re: Programming Conditional Formulas

    Thank you SOOOOO MUCH!!!!!!!! PERFECT!!!!!

  10. #10
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Programming Conditional Formulas

    Your Welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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