+ Reply to Thread
Results 1 to 9 of 9

how do I get a different value for different criteria IF?

  1. #1
    Registered User
    Join Date
    01-23-2015
    Location
    Pahrump, NV
    MS-Off Ver
    2003
    Posts
    4

    Question how do I get a different value for different criteria IF?

    I am trying to create a spreadsheet for a dance studio. If(D4="Ballet", 20), being D4 is the class taken and 20 is the dollar amount, BUT I need it to also do IF(D4="Adv. Ballet), 35), along with many other IFs, as I each class has a different cost. I really appreciate any help, as I haven't worked with Excel for a long time and I am ready to pull out my hair!


  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: how do I get a different value for different criteria IF?

    Welcome to the forum, bzymom!

    On another tab, make a small table that you can index later.

    For example, A1: Class, B2: Cost

    Then down column A list the classes, and in column b list the costs.

    Back on the first tab, =VLOOKUP(D4,Sheet2!$A$2:$B$10,2,0)

    That will find D4 in the little table you made and return the value in the 2nd column.
    Attached Files Attached Files
    Last edited by daffodil11; 01-23-2015 at 05:47 PM.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: how do I get a different value for different criteria IF?

    Try this formula in the cell you want the $ amount to appear in ... =IF(D4="Ballet","$20",IF(D4="Adv. Ballet","$35",""))
    Sorry, didn't see that someone already answered your post.
    Last edited by gmr4evr1; 01-23-2015 at 05:40 PM. Reason: appology
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: how do I get a different value for different criteria IF?

    Perhaps this will get you started. It has the dances in a small table with the associated prices. Then, in column D there is a Data Validation list from which to choose the class and the price will automatically be entered in column E next to the class.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: how do I get a different value for different criteria IF?

    @daffodil11

    Looks like we have very similar ideas about this.

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: how do I get a different value for different criteria IF?

    Brilliant minds think alike. I even named a class after you. :D

  7. #7
    Registered User
    Join Date
    01-23-2015
    Location
    Pahrump, NV
    MS-Off Ver
    2003
    Posts
    4

    Re: how do I get a different value for different criteria IF?

    The only problem with this solution was I started the spreadsheet with an older version of Excel and it wouldn't allow me to add all of the criteria. I copied the data into a new spreadsheet with the most current version and used the vlookup. Works like a charm! Thank you!

  8. #8
    Registered User
    Join Date
    01-23-2015
    Location
    Pahrump, NV
    MS-Off Ver
    2003
    Posts
    4

    Re: how do I get a different value for different criteria IF?

    THANK YOU! Worked like a charm.

  9. #9
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: how do I get a different value for different criteria IF?

    Glad we could help.

+ 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. Replies: 7
    Last Post: 07-07-2014, 09:48 AM
  2. Replies: 1
    Last Post: 09-03-2013, 07:41 PM
  3. [SOLVED] Find a number closest to 30 in a range with one more criteria (criteria includes text)
    By Sarangsood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-22-2013, 01:16 PM
  4. Replies: 4
    Last Post: 01-08-2013, 12:37 PM
  5. MACROS: Sort by multiple criteria - Create tabs based off of criteria
    By svineyard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2009, 10:48 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