+ Reply to Thread
Results 1 to 7 of 7

Creating a formula to select a value in a table based on a criteria

  1. #1
    Registered User
    Join Date
    06-23-2014
    Location
    Oswestry, England
    MS-Off Ver
    Office 12
    Posts
    4

    Creating a formula to select a value in a table based on a criteria

    Hi All

    I have tried using if statements and the like to build a formula but I'm a bit out of my depth. I will paste an example below and explain what I want to achieve. If anybody could help I would be so grateful

    Turnover: £600,000.00
    Net Profit £65,000.00
    Net Profit Margin 10.83%

    Example.png

    I want to be able to enter our turnover and net profit and calculate the bonus pot based on the turnover and net profit percentage. For example if turnover was £600,000 and Net Profit was £65,000 it would give a net profit margin of 10.83% (so turnover is greater than 500000 but less than 750000 and net profit margin is greater than 10 but less than 12.5) then it would select 4% from the correct cell and calculate the bonus pot as 4% of net profit (4% of 65,000 = £2600).

    Hope that makes sense!!

    Thank you

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Creating a formula to select a value in a table based on a criteria

    Can you post a spreadsheet?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    06-23-2014
    Location
    Oswestry, England
    MS-Off Ver
    Office 12
    Posts
    4

    Re: Creating a formula to select a value in a table based on a criteria

    SAMPLE.xlsx

    Hi

    Thanks for your reply

    I have attached a sample

    I hope it makes sense but not sure if it would be better laid out another way. Thanks for any help you can provide.

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Creating a formula to select a value in a table based on a criteria

    Try

    in B17
    =OFFSET($B$9,MATCH(C4,B9:B13,1),(MATCH(C2,B7:I7,1)-1)/2*2+1)

    Check the results, I only checked a few of them.

  5. #5
    Registered User
    Join Date
    06-23-2014
    Location
    Oswestry, England
    MS-Off Ver
    Office 12
    Posts
    4

    Re: Creating a formula to select a value in a table based on a criteria

    Thanks very, that is brilliant. I'm going to try and learn how to do that now. Only thing that I couldn't get to work is when profit is greater than 15% it just returns 0%. Thank you so much though, I am one step closer

  6. #6
    Registered User
    Join Date
    06-23-2014
    Location
    Oswestry, England
    MS-Off Ver
    Office 12
    Posts
    4

    Re: Creating a formula to select a value in a table based on a criteria

    Really sorry to be a pain Special-K, i've found quite a few of the results aren't reading correct, I think I understand the formula in that it is trying to match the cells with the different ranges but can't get it to work, I'm also not so sure on the end bit of the formula and what it does, the /2*2+1 bit. Thanks again

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Creating a formula to select a value in a table based on a criteria

    see the attached file
    i make little changes to the workbook
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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. Count records in table based on criteria, select and paste to a new spreadsheet
    By thisguy4000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2014, 09:43 AM
  2. Formula to have excel select a date of the month based on certain criteria
    By dunkle83 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-24-2014, 10:39 PM
  3. [SOLVED] Need help creating an IF formula to add a percentage based on multiple criteria
    By jbear536 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2013, 11:38 AM
  4. Replies: 3
    Last Post: 08-11-2012, 09:57 AM
  5. [SOLVED] Select cell formula based on criteria
    By roseberryv@orvis.com in forum Excel General
    Replies: 1
    Last Post: 06-15-2006, 07:10 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