Solved

Excel Select Box IF statement question

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now