+ Reply to Thread
Results 1 to 4 of 4

Cost calculator

  1. #1
    Registered User
    Join Date
    09-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    6

    Cost calculator

    Hi,

    I need to make a cost calculator for pricing Virtual Servers.

    There are three offerings:

    Small, 1 vCPU, 4 GB Mem, 100GB
    Medium, 2 vCPU, 12GB Mem, 250GB
    Large, 4 vCPU, 32GB Mem, 500GB

    If any of the values fall within the next level then it becomes that size. So if it was 1 vCPU, 4 GB Mem, 500GB, then it would be large.

    I’d like to have a drop down box where the user could choose a value and then it would say if it’s small medium or large.

    I was working with this:

    =IF(OR(C8=1, D8=4, E8=100 ), "Small",IF(OR(C8=4, D8=32, E8=500 ), "Large","medium"))

    But I’m not sure this will work because of the way it evaluates it. Am I on the right track or is there an easier way to do it? Should I use some sort of lookup table?

    Any advice welcome.

    Thanks.

    Martin.

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Cost calculator

    Since none of the value combinations repeat for either Small, Medium, or Large, why do you have to compare all three values for each? Why not just compare one value? For example (assuming all three categories need to be selected):

    Please Login or Register  to view this content.
    would correspond to the vCPU, since you know if the user selects 1, it will automatically be Small, 2 will be Medium, and 4 will be Large.

    You could constrain the cell contents using a dropdown selection box with data validation as you already stated.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Cost calculator

    Why not try the choose function?

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Registered User
    Join Date
    09-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Cost calculator

    Mcmahoot,

    Thanks for your reply,

    That wouldn't work because, as in the example: 1 vCPU, 4 GB Mem, 500GB = Large, any value that is above the baseline would make it a different size.

    Thanks.

    Martin.

+ 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. Cost Calculator basis day / hour
    By splintered in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-25-2013, 07:43 PM
  2. Building a cost calculator
    By Dusty Strings in forum Excel General
    Replies: 2
    Last Post: 06-01-2011, 10:02 AM
  3. Manufacturing to Retail Cost Calculator
    By Mahogan in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-15-2009, 01:36 AM
  4. carpet cost calculator
    By MikeDean in forum Excel General
    Replies: 5
    Last Post: 12-03-2007, 05:50 PM
  5. Cost Calculator
    By bnwash in forum Excel General
    Replies: 1
    Last Post: 04-20-2007, 05:08 AM

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