Solved

Excel Select Box IF statement question

Posted on 2013-05-10
5
477 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
  • 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 500 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Outlook Free & Paid Tools
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

803 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