?
Solved

Excel Select Box IF statement question

Posted on 2013-05-10
5
Medium Priority
?
502 Views
Last Modified: 2013-05-13
On excel sheet "LVL Test Data pg 1" cells J8, K8 & L8 are sample test times.

If an "X" is in cells J9, K9 or L9 (only one cell can have an "X") it needs to reference excel sheet "Patterns" rows: E thru M

"Patterns" Excel Sheet                              Name Relation on Excel Sheet "LVL Test Data pg 1"

Columns   Test name                                              

E                EdgeBend                                                Edge Bending                    A6
F                FlatBend                                                  Flat Bending                     C6
G               Tension                                                    Tension                              D6
H               MC                                                           Moisture Content            E6
I                GlueBond                                                Glue Bond Durability       G6
J                ABond                                                     A Bond Durability             I6
K              10H2                                                        10" H2 Specimen             K6  

There is a numerical code in the  columns listed above associated with each pattern in row A they are:

0 = Never

1 = 24 hr, Start Up or C/O

2 = Always

If the thickness in row "D" "SpecBilletThick" on patterns is greater than "1.75" then a Tension test is not needed from row "G" from sheet "Patterns"


Based on whether there is a 0, 1 or 2 in the rows E thru M in excel sheet "Patterns"

an " X " needs to appear in excel sheet "LVL Test Data pg 1"

In cells A7, C7, D7, E7, G7, I7 or K7 in their name relation under the cell above.


Password to view VBA code is: tyrannis
LVLDataSheetsAutoPWCLocking.xlsm
0
Comment
Question by:James Coats
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 32

Expert Comment

by:Robberbaron (robr)
ID: 39157643

"Based on whether there is a 0, 1 or 2 in the rows E thru M in excel sheet "Patterns"
an " X " needs to appear in excel sheet "LVL Test Data pg 1"


what determines if a X is placed ?  always if 2, or if 1 and the code in J9-L9 matches ?

have you tried VLOOKUP ?
0
 

Author Comment

by:James Coats
ID: 39157912
A human will determine when an X is placed in one of the boxes based on what test is being performed. Only one test is performed per event. So if an X appears in any one of the three boxes the others have to auto populate per the values in the sheet patterns.
0
 
LVL 32

Accepted Solution

by:
Robberbaron (robr) earned 1500 total points
ID: 39157953
yes but what if the tension column on Patterns has a zero ? is an X still placed in tension box of the TestData sheet ?   otherwise, what is the purpose of the values in the patterns sheet ?

wont there always be a value ?

can you create a couple of 'completed' test sheets so i know what the end result is to be.


with 'auto-populate' , lookups are the likely best option, with IF tests to tell whether to display data.
0
 

Author Comment

by:James Coats
ID: 39159540
An X is only placed in the cells: J9, K9 or L9. Only one of these cells can contain an X.

If the thickness in "Spec. Thickness" (J4) is greater than 1.75 no value needs to populate D7 under Tension.

OK based on pattern 5004: If any one of the cells J9, K9 or L9 had an X. An X should appear in cells: C7, E7, G7, and I7

Based on pattern 7001: If any one of the cells J9, K9 or L9 had an X. An X should appear in cells: C7, D7, E7, G7 and A9.

Based on pattern 26000: If any one of the cells J9, K9 or L9 had an X.  An X should appear in cells: C7, D7, E7, G7 and D9.

Based on pattern 24316H: If any one of the cells J9, K9 or L9 had an X. An X should appear in cells: C7, D7, E7, G7, I7 and K7

Does this help?
0
 

Author Closing Comment

by:James Coats
ID: 39163052
I will try the lookup and if I can't make it work I'll post back. Thank you for the suggestion.
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question