+ Reply to Thread
Results 1 to 7 of 7

IF formula based on text selection of another cell

  1. #1
    Registered User
    Join Date
    05-31-2019
    Location
    Montreal, Quebec
    MS-Off Ver
    2016
    Posts
    23

    Question IF formula based on text selection of another cell

    Hi guys,

    I'm not that good at Excel but I've been tasked with making some improvements on a document.

    In this case I am looking to create IF formulas (I believe that is the right one?) to show certain selections (competencies in this case, it's for recruiting) based on the position level that is selected.

    In other words, based on the selection of cell B1 in sheet "Front End", to automatically populate Competencies 1-4 (A4, A9, A14, A19) based on the competencies that are listed for each level in the "Positions Levels" sheet (there are three level brackets with each having their own 4 competencies).

    Another thing I'd like to do is not only to have the specific competencies automatically filled in for each level bracket as I just explained, but also have a different set of questions to choose from for each competency with different questions that could show up based on not only the competency but also the level the competency is attached to. For example, Valuing Differences under level 1-6 could have a choice of 5 questions and if you choose levels 7-8 and use Valuing Differences again (based on the formula discussed above it should also show up since it's present in all level brackets) it could have a choice of 5 questions again but maybe because it's in a higher level brackets we could have different questions or just 1-2 that are different from levels 1-6?

    I hope I explained myself okay. I don't believe this document was created properly the first time around and I'm sure some excel experts could do it better for sure. Let me know your feedback on this it would be greatly appreciated

    EDIT: Cross-posted to https://www.mrexcel.com/board/thread...-cell.1163846/
    Last edited by Nicolas2465; 03-05-2021 at 04:30 PM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: IF formula based on text selection of another cell

    Link to cross post was added by OP
    Last edited by Pepe Le Mokko; 03-06-2021 at 03:28 AM.

  3. #3
    Registered User
    Join Date
    05-31-2019
    Location
    Montreal, Quebec
    MS-Off Ver
    2016
    Posts
    23

    Re: IF formula based on text selection of another cell

    Hi I added the cross-posting linked sorry about that

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

    Re: IF formula based on text selection of another cell

    I feel that I misread the question, however I am going to show you what I came up with in case that might be useful.
    Column B on the Front End sheet is populated with drop downs, 3 for each competency. The drop downs only include question choices from the competency listed in column C (C4, C9, C14 and C19).
    The cells in column C are populated using: =INDEX('Positions Levels'!D$2:D$4,MATCH(B$1,'Positions Levels'!A$2:A$4,0)) so that when the position level in cell B1 changes the values in the cells change as do the choices in the drop downs.
    By the way the cells in column C could easily be hidden, for aesthetic purposes, by changing the font to white.
    The drop downs in column B utilize the source formula: =OFFSET('Question Database'!A$1,MATCH(C$4,'Question Database'!A$2:A$561,0),3,SUMPRODUCT(--('Question Database'!A$2:A$561=C$4)))
    A change that this requires is that the data on the Question Database sheet will need to be sorted A to Z based on column A.
    I will say that in my opinion if column A on the Front End sheet are simply placed by formula then you'll end up with the same questions for the same level each time, which may give rise to candidates sharing the questions.
    In order to present a different set of question choices for different levels I feel that the level for each question would need to be listed on the Question Database sheet.
    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.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: IF formula based on text selection of another cell

    Work sheet event with VBA coding will be helpful. Is it ok for you.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Registered User
    Join Date
    05-31-2019
    Location
    Montreal, Quebec
    MS-Off Ver
    2016
    Posts
    23

    Re: IF formula based on text selection of another cell

    Hi there,

    thank you; I see what you did, however on Front End, I don't actually mind if the competencies (which you've put in Column C and say can be hidden) show up in column B (B4, B9, B14, B19). I would actually prefer it that way, I want to know what competencies we will be using. Also, are you saying that the only way for questions to show up as options under Question 1, 2, 3 for each competency is for the 'Question Database' sheet's A column to be sorted A-Z? If so, that is fine with me, as long as the list of available options of questions actually shows up. The reason that A column was there was because there should be a different selection of questions available based on the competency identified, which is why each set of questions was attached to the competencies in the A column. If it can be simplified, that's fine.

    We don't mind if the questions are always the same, we don't always ask the same questions, but we should be able to pick from 5-7 question options for each competency based on the position level (1-6, etc.). For example, I want to be able to modify what sets of questions I can choose from to ask the candidates if I am using the competency Collaborating in level 1-6, and also a different set of questions (that I would choose) to show up alongside Collaborating when choosing level 7-8. Even if the competencies are the same between different levels, we may want to have different questions to pick from for each level. Those questions are still to be determined but I would like to have the formatting in place for when we choose our questions.

    I hope that makes sense

  7. #7
    Registered User
    Join Date
    05-31-2019
    Location
    Montreal, Quebec
    MS-Off Ver
    2016
    Posts
    23

    Re: IF formula based on text selection of another cell

    Quote Originally Posted by kvsrinivasamurthy View Post
    Work sheet event with VBA coding will be helpful. Is it ok for you.
    As long as it works it's fine!

+ 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. Cell text contents based on dropdown selection?
    By pbenji in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2020, 10:17 PM
  2. Insert text box string to cell based on activecell and combobox selection
    By Catsonheat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2020, 06:42 AM
  3. Updating Text Box with Cell Values based on ComboBox Selection
    By Huskersippi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2016, 02:19 AM
  4. lock and insert formula in a cell based on selection of text in another cell
    By alirazafazal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-01-2014, 06:08 AM
  5. Replies: 0
    Last Post: 03-20-2014, 10:57 AM
  6. Replies: 2
    Last Post: 02-01-2013, 01:57 PM
  7. Update formula based on cell selection
    By Maver1ck666 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-01-2010, 09:49 AM

Tags for this Thread

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