+ Reply to Thread
Results 1 to 5 of 5

formulas and conditional formatting based on multiple cell values and criterias

  1. #1
    Registered User
    Join Date
    01-29-2012
    Location
    West Virginia
    MS-Off Ver
    Excel 2010
    Posts
    3

    formulas and conditional formatting based on multiple cell values and criterias

    I have an existing workbook that I created and need to improve on. Please see attached.

    My problems are:

    1. the formula in J10:J165 is sometimes returning a "false" response to formulas, where I want a zero value returned. The formula reads columns D & E, which are width and height values of a sheet of wood. the formula should calculate stiffeners based on these dimensions. any time a sheet is larger than 24" by 48", stiffeners need to be placed at 24" on center along the longer dimension. I think what has me messed up is that you have to make the formula understand that it can be larger than 24" wide by 48" high OR 48" wide by 24" high. I seem to have the formula working for all scenarios except when the width dimension is less than 48 and the height dimension is less than the width dimension.

    For examples of how it should work, any time the dimensions are greater than 24 by 48, the long dimension is divided by 24.02 and rounded down to the nearest whole number:
    W:23 H:47 - Stiffeners = 0
    W:24 H:48 - Stiffeners = 1
    W:48 H:24 - Stiffeners = 1
    W:56 H:36 - Stiffeners = 2
    W:47 H:23 - Stiffeners = "FALSE"
    W:48 H:25 - Stiffeners = 1

    2. Columns G & H, "stretch width" and "stretch height", are just the dimensions discussed previous, plus 2. these dimensions tell me what size stock I need to cut the actual panel out of. there are limitations to what size stock is available for different types of wood. So if I am using a type of wood that comes in a maximum size of 48" x 96", I want to input those dimensions in the "stock sheet width" and "stock sheet height" cells. Then, when I am entering the "face width" and "face height" dimensions in the table below, if any sizes come up larger than the stock material available, I want that entire row to highlight in yellow.

    3. Sometimes the wood grain direction will affect the finish of the product, and all of the wood grain will be required to go in the same direction. In this case, I want to select "yes" in the "grain direction matter?" cell, and indicate "height" or "width" in the "grain direction" cell. Then, any time a "stretch width" or "stretch height" dimension exceeds the stock sheet dimensions, I need that row to highlight in yellow.

    If anyone is willing to give me a hand I would really appreciate it. Hopefully what I have written is clear enough, but if not I would be happy to explain further as needed, even call if you wish. I know enough to get by okay, but this is getting a bit out of my realm of understanding at this point, though I know it can be done.

    also, I prefer formulas that I can lock the cells, rather than Macro, VBA, etc. Some of my clients that will be using this need it to be very simple input only. If they have to enable macros or anything of that sort, they will just not use it unfortunately.
    Attached Files Attached Files
    Last edited by Jknipe2000; 01-29-2012 at 10:24 PM. Reason: revise title per OP's request/rules

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: need some help with formulas

    Please amend your title per rule #1:
    1. Use concise, accurate thread titles. Your post title should describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    01-29-2012
    Location
    West Virginia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: need some help with formulas

    anyone willing to give this a shot?

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: formulas and conditional formatting based on multiple cell values and criterias

    For #1: =IF(D11>E11,IF(D11>=48,IF(E11>=24,(E11*J11*C11/12),0),0),IF(E11>=48,IF(D11>=24,(D11*J11*C11/12),0),0))
    Last edited by protonLeah; 01-30-2012 at 11:55 PM.

  5. #5
    Registered User
    Join Date
    01-29-2012
    Location
    West Virginia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: formulas and conditional formatting based on multiple cell values and criterias

    That part works perfectly now, thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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