+ Reply to Thread
Results 1 to 3 of 3

Incorrect IF statment

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    7

    Incorrect IF statment

    Hi I am trying to create an IF statement to do the following:

    Logic True False True False
    IF H1>=1,000,000,000 OR (H1 = "Above Bracket","Good", Find E1 in $A1$:$A$4 and see IF H1<D1, "Consolidate", "Accredo"

    I have 2 pivot tables in one with the same columns (Label, Sum, OQ, OB). I am trying to create an IF statement to check the label and then the OB to see if it passes a logical test, if it doesn't, then I want it to go through an additional series of logic. My problem is that the label has to be read from 2 different pivot tables and there are multiple rows to be searched to "find" the right label and associated "OB". Here is an example:

    Pivot Table 1
    A / B / C / D
    Row Labels / Sum of Total / NAOQ / NOB
    1 05L.24P.DR-NDW / 97,907,000 / 16,317,000 / Above Bracket
    2 05L.24P.DR-NDW / 907,000 / 317,000 / 500,000
    3 05L.24P.DR-KRG / 491,000 / 81,925 / 100,000
    4 05L.24P.DR-NDW / 97,907,000 / 16,317,000 / Above Bracket

    Pivot Table 2
    E / F / G / H
    Row Labels / Sum of Total / NAOQ / NOB
    1 05L.24P.DR-NDW / 73,732,544 / 12,288,757 /Above Bracket
    2 05L.24P.DM-GRV / 25,710,447 / 4,285,074 /250,000
    3 05L.24P.DR-KRG / 19,433,325 / 3,238,888 /50,000
    4 05L.24P.DR-RFR / 11,520,568 / 1,920,095 /Above Bracket
    Last edited by ajaber; 06-19-2015 at 02:05 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166
    Hello ajaber,

    Welcome to Excelforum. Be a part of large Excel community. Enjoy Learning.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    06-18-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    7

    Re: Incorrect IF statment

    Thanks... I'm learning, lol. I also am trying to figure out how to properly post a question....

+ 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. [SOLVED] Forumula Results Incorrect when data missing. Wanting to hide the incorrect formula.
    By firemedic6265 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-05-2014, 05:01 PM
  2. if statment
    By JOONA in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-24-2013, 08:14 PM
  3. Replies: 2
    Last Post: 06-06-2012, 10:59 PM
  4. [SOLVED] IF statment within IF statment?
    By DaZombie in forum Excel General
    Replies: 2
    Last Post: 10-27-2010, 12:33 PM
  5. IF Statment
    By MIKE0W in forum Excel General
    Replies: 1
    Last Post: 03-23-2005, 08:52 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