Results 1 to 1 of 1

Multiple formulas (If statements) performed in order

Threaded View

  1. #1
    Registered User
    Join Date
    10-08-2012
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2013
    Posts
    43

    Multiple formulas (If statements) performed in order

    Hi,

    So, ultimately I am providing demand over time for several different buildings while people are moving in and out them. There are 2 parts to the formula I need and I have the first part. I have people moving out in one pivot table and people moving in in another table. I have to find a way to use both of these pivot tables in a formula to get my demand over time which is in another tab.

    My main tab "Supply Demand-All by Qtr" has an initial demand number then from there it will subtract the number of people in the "PT by Qtr" tab whenever the building name and time period is equivalent. Below is the first part of the formula I have that works. C4 is the initial demand number.
    =C4-IFERROR(GETPIVOTDATA("p00_HC",'PT by Qtr'!$A$3,"Qtr Date","2Q 2013","From_bl_id","BELL"),0)

    Now I need to do pretty much the same thing again except I need to add the number of people in the "Camping PT by Qtr" tab when the building name and time period are equal.
    I tried just adding a +(IFERROR(GETPIVOTDATA("p00_HC",'Camping PT by Qtr'!$A$1,"Qtr Date","3Q 2013","BL","BELL"),0)) to the end of the formula, but it didn't work.

    I have attached a spreadsheet with some sample data for review.

    Any help would be much appreciated!
    Attached Files Attached Files

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