Results 1 to 9 of 9

Nesting IF Statement

Threaded View

  1. #1
    Registered User
    Join Date
    11-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2004 for Mac
    Posts
    41

    Nesting IF Statement

    Cross posted at http://www.vbaexpress.com/forum/show...135#post255149



    I could really use a big hand and any help is much appreciated. I'm just not proficient enough to nest all of theses statements into a single, concise statement that would live in cell G24.



    =IF(AND(OR(H38={"Canvas","Gallery Wrap Canvas","Giclee","Reg Photo Paper","Matte Photo Poster","Moab","Full Bleed Giclee"}),G28=6,G29="11pm"),G26+3,"0")
    =IF(AND(OR(H38={"Canvas","Gallery Wrap Canvas","Giclee","Reg Photo Paper","Matte Photo Poster","Moab","Full Bleed Giclee"}),G28=7),G26+2,"0")
    =IF(AND(OR(H38={"Laminate","Premium Photo Paper","Wall Decal","Watercolor Paper","Watercolor Paper LE"}),G28=4,G29="11pm"),G26+6,"Ok")
    =IF(AND(OR(H38={"Laminate","Premium Photo Paper","Wall Decal","Watercolor Paper","Watercolor Paper LE"}),G28=5,G29="11pm"),G26+6,"Ok")
    =IF(AND(OR(H38={"Laminate","Premium Photo Paper","Wall Decal","Watercolor Paper","Watercolor Paper LE"}),G28=6,G29="11pm"),G26+6,"0")
    =IF(AND(OR(H38={"Laminate","Premium Photo Paper","Wall Decal","Watercolor Paper","Watercolor Paper LE"}),OR(G28={7}),OR(G29={"3am","7am","11am","3pm","7pm"})),G25+4,"0")
    =IF(AND(OR(H38={"Canvas","Gallery Wrap Canvas","Giclee","Reg Photo Paper","Matte Photo Poster","Moab","Full Bleed Giclee"}),OR(G28={1,2,3,4,5,6}),OR(G29={"3am","7am","11am","3pm","7pm"})),G25+1,"0")
    =IF(AND(OR(H38={"Canvas","Gallery Wrap Canvas","Giclee","Reg Photo Paper","Matte Photo Poster","Moab","Full Bleed Giclee"}),OR(G28={1,2,3,4,5}),OR(G29="11pm")),G25+2,"0")
    =IF(AND(OR(H38={"Laminate","Premium Photo Paper","Wall Decal","Watercolor Paper","Watercolor Paper LE"}),OR(G28={1,2,3,4}),OR(G29={"3am","7am","11am","3pm","7pm"})),G25+3,"0")
    =IF(AND(OR(H38={"Laminate","Premium Photo Paper","Wall Decal","Watercolor Paper","Watercolor Paper LE"}),OR(G28={1,2,3,7}),OR(G29="11pm")),G25+4,"0")
    =IF(AND(OR(H38={"Laminate","Premium Photo Paper","Wall Decal","Watercolor Paper","Watercolor Paper LE"}),OR(G28={6}),OR(G29={"3am","7am","11am","3pm","7pm"})),G25+5,"0")
    =IF(AND(OR(H38={"Laminate","Premium Photo Paper","Wall Decal","Watercolor Paper","Watercolor Paper LE"}),OR(G28={5}),OR(G29={"3am","7am","11am","3pm","7pm"})),G25+5,"0")
    Last edited by firehousetk; 11-23-2011 at 12:35 PM.

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