+ Reply to Thread
Results 1 to 15 of 15

Need to assign value to a cell, based on pull down menu option chosen

  1. #1
    Registered User
    Join Date
    06-13-2017
    Location
    NJ
    MS-Off Ver
    2010 & 2016
    Posts
    17

    Need to assign value to a cell, based on pull down menu option chosen

    Hello everyone!
    I’m new here and a basic excel user. I’m doing a project that’s out of my league and need some help please.
    We are changing our attendance policy to a rolling point system. Points expire after one year and there are different point values for different offenses.
    Currently there are 21 types of offenses.

    I have managed to make a pull-down menu in one column for “offense date” which I pull the data from the “lists” tab and another pull down menu on a different column for the “offense”.

    What I CANNOT figure out how to do is, make a value auto populate the cell after an offense is chosen.

    For example: If I choose “NCNS” from the pull-down menu. I want 4.00 to automatically pop up on the cell next to the date.

    I don’t want the managers to be able to “type” any info on the sheet, I want them to just pull down the date of the offense and the type of offense.

    After I get this issued solved, I will attempt to create a formula to add the points and subtract expired points and display current balance.

    I’m sorry for the long post, I’m having a hard time explaining what I want to do.

    Using excel 2010 at work and 2016 from home..
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Need to assign value to a cell, based on pull down menu option chosen

    Hello vcastro458 and Welcome to Excel Forum.
    Paste the following formula into B5 and drag down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    While the range is selected change the format to Number with 2 decimal places (default).
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    06-13-2017
    Location
    NJ
    MS-Off Ver
    2010 & 2016
    Posts
    17

    Re: Need to assign value to a cell, based on pull down menu option chosen

    Quote Originally Posted by JeteMc View Post
    Hello vcastro458 and Welcome to Excel Forum.
    Paste the following formula into B5 and drag down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    While the range is selected change the format to Number with 2 decimal places (default).
    Let us know if you have any questions.
    Hello JeteMC,
    Thank you for trying to help with my problem.
    Your formula did return a result, but the values that show, do not correspond with the option chosen.
    I'm reattaching my sheet again with your formula.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Need to assign value to a cell, based on pull down menu option chosen

    Sorry, I neglected to state that I had changed the 'refers to' of the named range 'OFFENSE' from =lists!$C$1:$C$22 to =lists!$C$2:$C$22
    Here is a copy of your file with the correction applied.
    Let us know if you have any questions.

  5. #5
    Registered User
    Join Date
    06-13-2017
    Location
    NJ
    MS-Off Ver
    2010 & 2016
    Posts
    17

    Re: Need to assign value to a cell, based on pull down menu option chosen

    JeteMC you ROCK!!!!!
    Thank you so much....

    Now I'm going to try to figure out the formula for it to add the points and subtract the expired points automatically.... wish me luck!!

    Thanks again for all your help.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Need to assign value to a cell, based on pull down menu option chosen

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. Good luck with the next phase of your project, let us know if you need assistance (suggest that you start a new thread if you need as it will get more notice). I hope that you have a blessed day.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Need to assign value to a cell, based on pull down menu option chosen

    I have a formula for points accumulated over the past year if you would like it. Of course if you would rather work on a formula on your own I understand.

  8. #8
    Registered User
    Join Date
    06-13-2017
    Location
    NJ
    MS-Off Ver
    2010 & 2016
    Posts
    17

    Re: Need to assign value to a cell, based on pull down menu option chosen

    I would love it, if you don't mind.
    I've been working on it for about two hours and can't seem to figure it out.
    I need it to add points and subtract any that are over one year old, in essence display a true total of current points only.

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Need to assign value to a cell, based on pull down menu option chosen

    Paste the following in C5 and drag down to C19:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Check to make sure that it is yielding the expected results, seems to be correct to me, and let me know if you have any questions.

  10. #10
    Registered User
    Join Date
    06-13-2017
    Location
    NJ
    MS-Off Ver
    2010 & 2016
    Posts
    17

    Re: Need to assign value to a cell, based on pull down menu option chosen


    Something is hinky... once it hits the new year, it doesn't calculate correctly.

    I attached the sheet
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Need to assign value to a cell, based on pull down menu option chosen

    Those were the same values that I had gotten, so perhaps my understanding of the objective is incorrect. Could you tell me the value(s) that you expect to get for one or two of the dates where the results appear 'hinky'?

  12. #12
    Registered User
    Join Date
    06-13-2017
    Location
    NJ
    MS-Off Ver
    2010 & 2016
    Posts
    17

    Re: Need to assign value to a cell, based on pull down menu option chosen

    01/01/17 0.50 0.50
    01/02/17 0.75 1.25
    01/03/17 1.50 2.75
    01/04/17 2.50 5.25
    01/05/17 3.00 8.25
    01/01/18 0.00 8.25...> this should subtract the .5 points from 1/1/17, which should then display 7.75
    Does that make sense? Points expire after one year, so I need to subtract that from the running balance.

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Need to assign value to a cell, based on pull down menu option chosen

    Make the following modification to the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if you have any questions.

  14. #14
    Registered User
    Join Date
    06-13-2017
    Location
    NJ
    MS-Off Ver
    2010 & 2016
    Posts
    17

    Re: Need to assign value to a cell, based on pull down menu option chosen

    You are so great!!!!!!!

    Thank you so much for all of your help. You've made this process so much easier today. I don't know if I would have ever figured that out on my own.

    I'm going to put it to rest now and go to bed. I'll play with it some more tomorrow and hopefully I won't be bugging you anymore for the next phases, there's a lot more to this project that I still need to figure out.

    Hope you enjoy the rest of your weekend and if you are a father or like a father to someone, Happy Father's Day to you!!

  15. #15
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Need to assign value to a cell, based on pull down menu option chosen

    You're Welcome and Thank You for the well wishes. Feel free to come back whenever you need help. I am thankful to be able to do for others things that were done for me. One day it may well be someone asking you how to get something to work. I hope that you have a blessed day.

+ 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. Change value of cell based on a drop down menu option.
    By laxtui in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2013, 07:23 AM
  2. Replies: 1
    Last Post: 12-09-2013, 04:19 PM
  3. "assign macro" option for a command button not always in menu
    By ajetrumpet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2013, 04:01 AM
  4. Change text colour based on list option chosen
    By supergirl21 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-12-2013, 03:11 AM
  5. Replies: 2
    Last Post: 09-15-2010, 11:59 AM
  6. Populate cell with not previously chosen option among 2 possible options...
    By Texas_Dawg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2010, 06:33 PM
  7. Replies: 1
    Last Post: 03-16-2007, 03:45 PM
  8. [SOLVED] How can my macro select an option in a pull down menu?
    By Tim Richards in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2005, 07: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