+ Reply to Thread
Results 1 to 12 of 12

Require Formula to Fill Based on Other Cells Variable Data

  1. #1
    Registered User
    Join Date
    07-24-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2016 (365)
    Posts
    62

    Question Require Formula to Fill Based on Other Cells Variable Data

    Good Morning!

    I'm having trouble building a formula to make the following occur automatically:

    I have uploaded a workbook...

    On sheet HRVA, when the user selects any of the combinations noted in Columns E&F and/or Columns J&K it should automatically fill and format the correct number and colour into Columns G&L (respectively) with information from the RISK RANKING sheet, but for the life of me I can't get any iterations of my forumlai to make that happen.

    Any help with this will be met with loads of GOOD KARMA!

    Thanks!

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

    Re: If, or, and??

    This is a two part question. How to get the number and how to get the color.

    How to get the number:
    Replace the "Alt-enter" in C7 of the 'Risk Ranking' sheet with a space.
    G3 =IFERROR(INDEX('Risk Ranking'!$D$7:$H$11,MATCH(E3,'Risk Ranking'!$C$7:$C$11,0),MATCH(F3,'Risk Ranking'!$D$12:$H$12,0)),"")
    You can copy/paste G3:G27 to L3:L27.

    The color will involve 4 or (5 if you want to bring over the borders) Conditional Formatting rules.

    Working on those now.
    Last edited by 63falcondude; 03-16-2018 at 01:10 PM. Reason: Typo

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

    Re: If, or, and??

    How to get the color:

    Green
    Highlight G3:G27 > Conditional Formatting > New Rule
    =OR(E3&G3="Rare1",E3&G3="Rare2",E3&G3="Unlikely2",E3&G3="Unlikely4",E3&G3="Moderate3")
    Format: Green > OK > OK

    Yellow
    Highlight G3:G27 > Conditional Formatting > New Rule
    =OR(E3&G3="Rare3",E3&G3="Unlikely6",E3&G3="Moderate6",E3&G3="Moderate9",E3&G3="Likely4",E3&G3="Likely8",E3&G3="Almost Certain5")
    Format: Fill Yellow > OK > OK

    Orange
    Highlight G3:G27 > Conditional Formatting > New Rule
    =OR(E3&G3="Rare4",E3&G3="Rare5",E3&G3="Unlikely8",E3&G3="Unlikely10",E3&G3="Moderate12",E3&G3="Likely12",E3&G3="Almost Certain10",E3&G3="Almost Certain15")
    Format: Fill Orange > OK > OK

    Red
    Highlight G3:G27 > Conditional Formatting > New Rule
    =OR(E3&G3="Moderate15",E3&G3="Likely16",E3&G3="Likely20",E3&G3="Almost Certain20",E3&G3="Almost Certain25")
    Format: Fill Red > OK > OK

    If you want to include the borders, you will have to include them in the formatting and split orange up into 2 rules (one for each border color).

    Then repeat for column L.
    Last edited by 63falcondude; 03-16-2018 at 01:33 PM. Reason: Included Orange and Red Formulas

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

    Re: If, or, and??

    Attached, is the result from posts #2 and 3 (for column G only).

  5. #5
    Registered User
    Join Date
    07-24-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2016 (365)
    Posts
    62

    Re: If, or, and??

    You are getting some really good karma!!
    Thank you!!

  6. #6
    Registered User
    Join Date
    07-24-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2016 (365)
    Posts
    62

    Question Require Formula to Fill Based on Other Cells Variable Data

    Good Day!

    I'm reopening this because it's for the same workbook with a similar problem. I've filled in the results as they should be.
    In addition to the awesome help that @63falcondude gave me, I also now require the H & M columns to fill with either YES or NO based on the COLOUR & NUMBER of the G & L columns. So if the G&L columns are ORANGE with either 4, 5, 8, 10, 12, or 15; then I need a formula that will fill in either YES or NO in the H&L columns.

    Once again, I have tried various iterations of what formulas @63falcondude provided but I can't get anything I build to work.

    Thank you in advance for all your help and advice!
    Last edited by Canadian911Guy; 04-09-2018 at 03:37 PM. Reason: Moderator Didn't Like Previous Title

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: If, or, and??

    Hi Canadian911Guy,

    Could you please take a few minutes and follow the forum rules to craft an appropriated thread title!!
    HTH
    Regards, Jeff

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

    Re: If, or, and??

    Try this in H5:

    =IF(OR(F5&G5={"Moderate10","Significant12","Significant15"},F5={"Major","Catastrophic"}),"YES","NO")

    or better yet:

    =IF(OR(G5>9,F5={"Major","Catastrophic"}),"YES","NO")
    Last edited by 63falcondude; 04-09-2018 at 03:39 PM.

  9. #9
    Registered User
    Join Date
    07-24-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2016 (365)
    Posts
    62

    Re: If, or, and??

    Once again you get the GOOD KARMA my friend!

    P.S.: I wasn't using {} and I had F5,G5 instead of F5&G5...

    Thanks for the help!

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

    Re: Require Formula to Fill Based on Other Cells Variable Data

    Happy to help!

  11. #11
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Require Formula to Fill Based on Other Cells Variable Data

    Moderator Didn't Like Previous Title
    No need to get snippy. Just pointing out the forum rules according to thread titles.

  12. #12
    Registered User
    Join Date
    07-24-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2016 (365)
    Posts
    62

    Re: Require Formula to Fill Based on Other Cells Variable Data

    Deleted as no longer relevent
    Last edited by Canadian911Guy; 04-09-2018 at 04:24 PM.

+ 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: 3
    Last Post: 12-06-2015, 05:06 AM
  2. [SOLVED] Require a formula please to fill in a table
    By john dalton in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-21-2015, 10:07 AM
  3. Replies: 1
    Last Post: 03-11-2015, 04:07 PM
  4. Require possible formula to pick some data from cells and sum together
    By reecechown in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-16-2014, 07:23 AM
  5. Series fill based on variable input data
    By tearoz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2014, 08:37 PM
  6. Replies: 12
    Last Post: 03-07-2014, 08:55 AM
  7. Replies: 2
    Last Post: 05-23-2013, 05:35 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