+ Reply to Thread
Results 1 to 5 of 5

Nested Ifs, If(And), If(or)

  1. #1
    Registered User
    Join Date
    08-25-2014
    Location
    Austin, TX
    MS-Off Ver
    7
    Posts
    2

    Nested Ifs, If(And), If(or)

    Yes, I am new at this and I don't know...

    Column B=Name
    Column E=hours
    Column F=Yes or No
    Column H=result

    Multiple tests per row: if hours are <20 and f is yes or no, the I want the name in B to appear in H, BUT if hours are >20 and f=no, then I want the name in B to appear in H.

    =if(AND(E2<20.1,AND(F2="no",F2="yes")),B2,"")*OR(IF(AND(E2>20,AND(F2="No")),B2,"")) get a #value

    =IF(E7<20.1,IF(F7="Yes",B7,IF(E7<20.1,IF(F7="No",B7,""),IF(E7>20,IF(F7="No",B7))))) I get a FALSE

    Thank you!
    Last edited by Badamson; 02-09-2018 at 11:03 AM.

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: If statement help please!

    In H1:
    Please Login or Register  to view this content.
    Last edited by ben_hensel; 02-08-2018 at 07:47 PM.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If statement help please!

    Hello Badamson & Welcome to the Forum,

    Administrative Note:
    • We would love to continue to help you with your query, but first, before we can proceed…
    • Please see Forum Rule #1 about proper thread titles and adjust accordingly...
    HTH
    Regards, Jeff

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: If statement help please!

    I actually think the thread title is alright -- I mean, it could be better, but it's a question about composing a Boolean function, I dunno we could expect OP to do any better than they already did.

  5. #5
    Registered User
    Join Date
    08-25-2014
    Location
    Austin, TX
    MS-Off Ver
    7
    Posts
    2

    Re: If statement help please!

    Thank you. That worked perfectly.

+ 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. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  2. [SOLVED] If statement to select data - nested statement - assistance
    By petitesouris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-29-2015, 09:55 PM
  3. compile error expected line number statement end statement
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2014, 10:12 AM
  4. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  5. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  6. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  7. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 PM

Tags for this Thread

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