+ Reply to Thread
Results 1 to 7 of 7

If/And formula

Hybrid View

  1. #1
    Registered User
    Join Date
    02-29-2008
    Posts
    15

    If/And formula

    I need some help figuring out how to get this formula to work. Thank you to anyone who can help.



    =IF(AND(OR(C3=P3,C3=P4),G3<=8),IF(AND(E3>=12/24,E3<20/24),P6,IF(AND(OR(C3=P3,C3=P4),G3<=8),IF(AND(E3>=20/24,E3<=24/24),P5,IF(AND(OR(C3=P3,C3=P4),G3<=8),IF(AND(E3>=0/24,E3<6/24),P5,""))))),IF(AND(C3=P7,G3<=8),IF(AND(E3>=12/24,E3<20/24),P9,IF(AND(C3=P7,G3<=8),IF(AND(E3>=20/24,E3<24/24),P8,IF(AND(C3=P7,G3<=8),IF(AND(E3>=0/24,E3<6/24),P8,""),"")),"")),"")),IF(AND(C3=P10,G3<=8),IF(AND(E3>=12/24,E3<20/24),P12,IF(AND(C3=P10,G3<=8),IF(AND(E3>=20/24,E3<24/24),P11,IF(AND(C3=P10,G3<=8),IF(AND(E3>=0/24,E3<6/24),P11,""),"")),"")),"")

  2. #2
    Registered User
    Join Date
    03-17-2008
    Posts
    85
    can you upload a copy of the sheet that it is from ? or an example ?

  3. #3
    Registered User
    Join Date
    02-29-2008
    Posts
    15
    I don't know how too. Can you explain how?

  4. #4
    Registered User
    Join Date
    03-17-2008
    Posts
    85
    you need to zip the file up then post a reply and use the paperclip to browse then upload the file

  5. #5
    Registered User
    Join Date
    02-29-2008
    Posts
    15
    Sorry it took so long. Thank you for taking a look at it. H3 is the formula I need help with.
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You could possibly shorten it a little to:
    =IF(AND(OR(C3=P3,C3=P4),G3<=8),IF(AND(E3>=12/24,E3<20/24),P6,IF(AND(E3>=20/24,E3<=24/24),P5,IF(AND(E3>=0/24,E3<6/24),P5,""))))&IF(AND(C3=P7,G3<=8),IF(AND(E3>=12/24,E3<20/24),P9,IF(AND(E3>=20/24,E3<24/24),P8,IF(AND(E3>=0/24,E3<6/24),P8,""))))&IF(AND(C3=P10,G3<=8),IF(AND(E3>=12/24,E3<20/24),P12,IF(AND(E3>=20/24,E3<24/24),P11,IF(AND(E3>=0/24,E3<6/24),P11,""))))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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