Solved

Excel Select Box IF statement question

Posted on 2013-05-10
5
483 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

809 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