+ Reply to Thread
Results 1 to 2 of 2

If statement help needed!

  1. #1
    Registered User
    Join Date
    08-27-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    1

    If statement help needed!

    Background

    I have a a few diagrams that I print on a 4"x6" label to use as a reference for cutting and scoring a 60" x 90" Cardboard blank in to custom size boxes.

    I figured out how to make it say that the if the dimensions are to large it will display "too large for a one sheet box" like the following.

    =IF(AND(A3>60,O14>90),"TOO LARGE FOR ONE SHEET","") A3 is the Total Width and O14 is the total Length.

    Now its possible for the item to be boxed is wider then A3, If it is, it is possible to rotate the diagram and print it with numbers in a different location. This will work as long as the width A3 is greater than (A3>60) but the width A3 is less than or equal to 90 (A3<=90) and the length O14 is less than or equal (014<=60). If this criteria is met the user must be told to use a rotated diagram.

    So I'm trying to put this into a statement that will do three things.

    1. If (A3<=60) and (O14 <= 90) Display ""
    1 Sheet Box.png

    2. If (A3>60) and (A3<=90) and (O14 <=60) Display "USE ROTATED DIAGRAM"
    Which means the user must select this worksheet to print.
    1 Sheet Box Rotated.png

    3. If (A3>60) and (O14>90) Display "TOO LARGE FOR 1 SHEET BOX"
    1 Sheet Box Too Large.png
    Which means the user must select this worksheet with the two sheet box diagram to print
    2 sheet box.png

    I'd like to do this in a nested if statement. I know basics of excel and I know how to use IBM BASIC and Microsoft GW BASIC, but I cant figure out the excel spreadsheet syntax.
    Any help would be greatly appreciated!

    Thanks!

    Rob

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: If statement help needed!

    Just based on the three conditions you provided you would write it like this

    =IF(AND(A3<=60,O14<=90),"",IF(AND(A3>60,A3<=90,O14<=60),"USE ROTATED DIAGRAM",IF(AND(A3>60,O14>90),"TOO LARGE FOR 1 SHEET BOX","Incompatible Measurements")))

    I'm assuming that if any measurements fall outside of the three ranges you gave they would be considered "incompatible measurements" such as if A3<60 and O14>90
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. If then statement needed
    By kaplanj23 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-19-2015, 03:07 PM
  2. If statement help needed
    By MadDawg542 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-16-2012, 09:34 PM
  3. If Statement Help Needed
    By johnsor1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-09-2012, 12:36 PM
  4. More Statement Help Needed
    By amsnss in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-03-2007, 12:57 AM
  5. If Statement - Help Needed
    By Portuga in forum Excel General
    Replies: 4
    Last Post: 01-24-2006, 12:30 PM
  6. much needed If/or statement help
    By Yupkwondo in forum Excel General
    Replies: 4
    Last Post: 08-17-2005, 09:45 PM
  7. If Then statement help needed
    By jmcclain in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2005, 05:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1