+ Reply to Thread
Results 1 to 6 of 6

Trying to get a formula and calculation to work, need help.

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-04-2015
    Location
    Dallas,Texas
    MS-Off Ver
    excel 2013
    Posts
    191

    Trying to get a formula and calculation to work, need help.

    I am trying to get this exercise completed, I have tried on my own but I am stumped. Help will be much appreciated. Thanks!

    Part 1

    Open the provided Excel file “ExerciseExcel.xls”. The first worksheet (Code Conversion) has a column labeled “Length of Employment” (Column A). Convert each length of employment into one of the following categories:

    0-6 (0 to 6 Months)
    7-12 (7 to 12 Months)
    1-2 (1 to 2 Years)
    2-5 (2 to 5 Years)
    5+ (5 plus Years)

    Column C labeled “After Conversion” contains examples of the conversion for the first 38 rows. Use whatever method you want to complete the conversion (except for manually converting the numbers) in Column B.


    Part 2

    Please refer to the worksheet in the "ExerciseExcel" file called “Data”. Please calculate the median “Avg Guest Check – Overall” for each segment (A,B,C, and Q) for only those average guest checks that are greater than zero. Please save the file with your calculations and/or provide a description of how you accomplished this.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Trying to get a formula and calculation to work, need help.

    I don't think that it is a good idea to mix units (e.g. 7-12 months and 1-2 years)

    That being said, if that is what you want to do then you can try this:

    =LOOKUP(A2,{0,0.58,1.01,2.01,5.01},{"0-6","7-12","1-2","2-5","5+"})

  3. #3
    Forum Contributor
    Join Date
    02-04-2015
    Location
    Dallas,Texas
    MS-Off Ver
    excel 2013
    Posts
    191

    Re: Trying to get a formula and calculation to work, need help.

    Thanks for your help. Could you also help me how to do Part 2? I was thinking a pivot table but I am not sure.

    Part 2

    Please refer to the worksheet in the "ExerciseExcel" file called “Data”. Please calculate the median “Avg Guest Check – Overall” for each segment (A,B,C, and Q) for only those average guest checks that are greater than zero. Please save the file with your calculations and/or provide a description of how you accomplished this.

    *This is in the same file attached

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Trying to get a formula and calculation to work, need help.

    Quote Originally Posted by pigment01 View Post

    Please refer to the worksheet in the "ExerciseExcel" file called “Data”. Please calculate the median “Avg Guest Check – Overall” for each segment (A,B,C, and Q) for only those average guest checks that are greater than zero. Please save the file with your calculations and/or provide a description of how you accomplished this.
    Try

    =MEDIAN(IF(($E$2:$E$76="A")*($D$2:$D$76>0),$D$2:$D$76)) Ctrl Shift Enter

    "A" can be changed to a cell reference such as G2 (with G2 having "A" in it without quotes).

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,400

    Re: Trying to get a formula and calculation to work, need help.

    What have you tried so far for part two?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    02-04-2015
    Location
    Dallas,Texas
    MS-Off Ver
    excel 2013
    Posts
    191

    Re: Trying to get a formula and calculation to work, need help.

    Hi there,

    This is what I have completed so far, I think I did it correctly? But I am sure there is a more efficient way to do this.

    Please advise.

    Thanks,

    Pigment01
    Attached Files Attached Files

+ 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. [SOLVED] Can't work calculation?
    By bralew in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-31-2016, 06:10 AM
  2. [SOLVED] EOMONTH formula calculation only work days
    By kettlecorn22 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-03-2014, 03:26 PM
  3. Earth work calculation
    By renjithpaduvilan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2012, 08:18 AM
  4. Help required to work out calculation... Please...
    By Snowmonster in forum Excel General
    Replies: 2
    Last Post: 10-02-2012, 05:11 AM
  5. Why Doesn't My Calculation Work
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2011, 03:40 AM
  6. Manual calculation does not work
    By Hmmmm in forum Excel General
    Replies: 3
    Last Post: 02-18-2005, 10:06 AM
  7. [SOLVED] How do I set up an calculation to work out somebody's age from th.
    By AlexS. in forum Excel General
    Replies: 4
    Last Post: 01-10-2005, 03:06 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