+ Reply to Thread
Results 1 to 3 of 3

If statement???

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    Oklahoma City, OK
    MS-Off Ver
    Excel 2010
    Posts
    47

    If statement???

    Am I able to write a double IF statement.
    Basically, I want to combine:

    If OR if........


    =IF($AI$31*1000=D14,0,$AI$31*1000)

    =IF($AI$31*1000=c14,0,$AI$31*1000)

    Or is there another way to write this and still get it to do what I want.

    Basically, this is for CUMS.... 30, 60, 90 day cums. I want to automatically link the data back to other sheets so I have it all in one area. My daily *** is already being calculated in one column. I want to reference the cell for day 30, then 60, then 90...etc, since this column is already calculating. If there is only 45 days of production, day 60 & 90 shows the same numbers. If it is the same, I want it to show 0

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: If statement???

    Try this one.

    =IF(OR($AI$31*1000=D14,AI$31*1000=c14),0,$AI$31*1000)
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-27-2013
    Location
    Oklahoma City, OK
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: If statement???

    Thank you for your help. I am saving this for future use.

    I am unable to use this formula for my stuff right now, though. Driving home yesterday I realized that this would bring back incorrect data.

    I have a column for daily #'s (I insert daily) and a column for the cumulative numbers (This is pre-calculated through 2000 days). the only way that day 30 & 60 would have the same numbers would be if it is less than 30 days. The numbers would be different if there were only 38 days so far, so I would be pulling incomplete cumulative data from day 60.

    I realized that i need my if statement to read:
    =IF($AH$31="",0,$AI$31*1000)
    AH being daily data and AI being cumulative data.

    Once again I was overthinking the simplicity of what I needed to do.

    Thank you for your help though. The calculation will come in handy in the future!

+ 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. 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
  2. [SOLVED] Formula for Income Statement in financial statement
    By Zunit in forum Excel General
    Replies: 6
    Last Post: 07-02-2012, 02:21 PM
  3. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  4. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  5. [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

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