+ Reply to Thread
Results 1 to 4 of 4

Need help with Formula to change multiple cell's values - Example Attached

  1. #1
    Registered User
    Join Date
    03-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Exclamation Need help with Formula to change multiple cell's values - Example Attached

    I have an issue that's fairly complex, for me at least, and was hoping someone count help me get started here.

    I've attached a detailed example of what I need, but basically here is issue:

    IF a cell, which is a drop down, equals a certain text value, then I need a range of cells in the adjacent column to all equal 0.

    Here's where it get's complicated.

    IF there are 3 or more of the word "Minor" in a range of cells, then then all of the adjacent cells need to equal 0.

    IF there are 2 or more of the word "Major" in a range of cells, then all of the adjacent cells need to equal 0.

    IF the selection is "Critical" in any cell in the range of cells, then all of the cells in teh adjacent column should be 0.

    IF "Good Practice" then 5 only in adjacent cell.

    The Example attached makes it a lot easier to understand what I'm trying to do here, but here is a simple table to illustrate, and there are a few more conditions as well.


    A B
    Good Practice 5
    Major 5
    Good Practice 5
    Good Practice 5
    Major 5


    So since there are two occourences of the word "Major" in A1 to A5, then B1 through B5 should all equal 0, regardless of any other values.

    Thanks in advance, I'll mark this resolved and give good rep if anyone can help!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Need help with Formula to change multiple cell's values - Example Attached

    Example Drop Downs.xlsx

    The attached should do this for you. I've created helper columns to test the first 3 situations mentioned.
    If none of these criteria are met then it checks for "Good Practice" and returns 5.00, otherwise it returns 0. You may wnat to modify formula depending on result required for "Note" and "Not Applicable".
    Say thanks, click *

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

    Re: Need help with Formula to change multiple cell's values - Example Attached

    In G2, then copied down:

    =IF(COUNTIF($F$2:$F$15,"Critical")>0,0,IF(COUNTIF($F$2:$F$15,"Major")>1,0,IF(COUNTIF($F$2:$F$15,"Minor")>2,0,IF(F2="Good Practice",5,0))))
    _________________
    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!)

  4. #4
    Registered User
    Join Date
    03-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Need help with Formula to change multiple cell's values - Example Attached

    Thank you both so much, the countif statement makes perfect sense! I'll mark as solved and leave good rep for both, thanks again!
    Last edited by rufus40444; 03-20-2013 at 04:55 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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