+ Reply to Thread
Results 1 to 5 of 5

Which functions to use?

  1. #1
    Registered User
    Join Date
    10-09-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Which functions to use?

    Hello!

    I recently started learning about basic spread sheet and different functions, and been solving problems for practice. I am currently stuck on these two so any help will be appreciated!


    Question 1) The following spreadsheet includes the names of various movie theatres in town. Each theatre has multiple cinemas in which various movies are played. The types of movie (Drama, Comedy, etc.) playing in each cinema are listed on the left side

    Note: If no movie is playing in a cinema, the cell type is empty.

    https://imageshack.com/i/eypoUYGip

    The following ranges have been named:

    C5:C11 -> GALAXYtype
    C14:C18 -> EMPIREtype

    a) What formula would you enter into F6 to count the total number of Comedy movies played at Galaxy? Your formula must be able to be filled down and right from F6 to H7 to correctly populate the table. The values shown in the summary table should be automatically updated if the types of movie showing in the cinemas change (e.g., C4 is changed to Comedy) or if the type of movie to be summarized changes (e.g., F5 is changed to Horror). (Hint: use the indirect formula)

    b) What formula would you enter in cell I6 to count the number of movies playing at Galaxy? Again your formula must be able to be filled down and be automatically updated if the types of movie showing in the cinemas change. (Hint: use the COUNTA formula)


    Question 2) HoneyBee Cupcake is having a promotion to attract customers. Above is a table showing different discount rates depending on the customers' birthday and membership status. The store owner may change the discount rates from time to time.

    https://imageshack.com/i/iqTiu0UVp

    a) In cell D8, enter the formula that would display the discount rate to be applied (The formula you entered should be able to be spread down to cell D13).

    b) The store owner wants to check the discount rate that applies to each customer once he enters customer's name in cell C15 (In this case, the customer name is "Chris", but the formula entered should work for any customer's name). What formula would you insert in cell C16?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Basic Spreadsheet problems

    Without answering all your homework questions directly, I'll clue you into the functions you will use to create your final answer:

    1a) Countif with Indirect
    1b) Counta with Indirect

    2a) The table above isn't very useful, you're going to have simply use IF/THEN nested inside each other to get to the answer.
    2b) Vlookup
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-09-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: Which functions to use?

    Ok I tried =COUNTIF(C$5:C$18,INDIRECT(F5)) but I get 0. What's the correct way of nesting the INDIRECT function?

    Also tried =COUNTIF(INDIRECT(GALAXYtype),"Comedy")
    Last edited by Dgholaml; 10-09-2014 at 09:37 PM.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Which functions to use?

    You have the word "Galaxy" in F5, but the named range isn't Galaxy, it is GalaxyType. You will need to string the word "type" onto the end.

    You can string text together using the & operator. ="Cat"&"Dog" would result in CatDog. So how would use that to add "type" to the end of the F5 reference?

    In the COUNTIF, you will be using INDIRECT() to create the first parameter, in place of the C5:C18. Then I believe the second parameter will be the string you want to count, like "Horror" or "Comedy", so you will reference that cell directly.



    I suppose if you changed the Named Range from "GalaxyType" to just "Galaxy", things would get simpler.

  5. #5
    Registered User
    Join Date
    10-09-2014
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: Which functions to use?

    F5 has the word Comedy in it. Thanks for the help though.

+ 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: 1
    Last Post: 02-10-2012, 05:27 PM
  2. AddIn With custom functions - Functions not working in Excel2010
    By brum17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2011, 08:25 AM
  3. Replies: 0
    Last Post: 11-15-2007, 05:24 AM
  4. [SOLVED] efficiency: database functions vs. math functions vs. array formula
    By nickname in forum Excel General
    Replies: 2
    Last Post: 07-13-2006, 11:30 PM
  5. Replies: 0
    Last Post: 06-05-2006, 05:20 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