Ask Experts Questions for FREE Help !
Ask
    pcmann2004's Avatar
    pcmann2004 Posts: 3, Reputation: 1
    New Member
     
    #1

    Nov 10, 2011, 11:56 PM
    excel conditional enable range disable range
    I am trying to enable disable rows and exclude cells that are empty from the random counter code example:

    Enable Rank Random Officer Name Output1
    yes 23 0.440135354 4216 Leonardo Vela 1 steven ford
    yes 7 0.74673831 4217 Donald Pudlowski 2 leonardo vela
    13 0.659526727 4218 3 donald pudlowski
    yes 24 0.424849358 4219 Steven Ford 4

    this code is similar for each case
    code : =RANK(C2,$C$2:$C$5) =RAND() =VLOOKUP(G2,B2:E5,4,0)

    I need to modify if row three is not enabled in the output and automatically gets position last or after the enabled data
    JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #2

    Nov 11, 2011, 08:37 AM
    Can you post an actual workbook showing your current setup, then add a second sheet showing your desired results and explain them in the workbook in context?

    Click GO ADVANCED and use the paperclip icon to post up a copy of your workbook.
    pcmann2004's Avatar
    pcmann2004 Posts: 3, Reputation: 1
    New Member
     
    #3

    Nov 11, 2011, 10:07 AM
    Here's the Spreadsheet
    Attached Files
  1. File Type: xls askmehelpdesk.xls (29.0 KB, 185 views)
  2. JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #4

    Nov 11, 2011, 01:26 PM
    Here's how I would do that...
    Attached Files
  3. File Type: xls DutyRoster.xls (35.0 KB, 162 views)
  4. pcmann2004's Avatar
    pcmann2004 Posts: 3, Reputation: 1
    New Member
     
    #5

    Nov 12, 2011, 11:09 PM
    WOW that's amazing, I will put this into my sheet and see if it works in my situation, can you define what you have done so I can understand the code better
    JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #6

    Nov 15, 2011, 07:38 AM
    Column C formula will only insert a randomized number if column A says "yes".

    Column B will only rank that row if there is a "yes".

    Column G will only show a number if it is less than the maximum number currently showing in column B.

    Column H will only do a VLOOKUP() to match the Ranks and pull the name from column E if there is a visible number in column G.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Can I switch from electric range to gas range [ 5 Answers ]

I have an electric range but I need to buy a new one. I heard that cooking on a gas range is so much better. My husband pulled the range away from the wall and there is a little pipe sticking out of the wall. Is that for a gas stove? Thank you!

What are your long-range and short-range career goals and objectives, and how are you [ 1 Answers ]

Hello, What are your long-range and short-range career goals and objectives, and how are you preparing to achieve them?

Disable or Enable cell in Excel [ 1 Answers ]

How we disable or enable particular cell, sheet in excel

Changing from a gas range to an electric smooth top range [ 1 Answers ]

What are the requirement for switching from cooking with a gas stove to cooking with and electric stove


View more questions Search