Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Excel Select Box IF statement question

Posted on 2013-05-10
5
Medium Priority
?
510 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

596 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