Solved

iF STATEMENT FORMULA

Posted on 2014-09-09
7
115 Views
Last Modified: 2014-09-10
I love your new website look, congrats.  I am looking for an if formula for the table attached.  All I want is an if statement to subtract the previous month from the current month etc
the .
For example:

In beginning month of August  you will subtract
0 minus August number

In September formula will be

September number minus August

and so on...

Thanks and I will also take any advice or comments.
expertsexch.xlsx
0
Comment
Question by:Kdankwah
7 Comments
 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 40313040
Can you attach/show an example that shows what the required output is? Excel document?
0
 

Author Comment

by:Kdankwah
ID: 40313069
The output will be like this.

Output:            
August      
      
MTD                   YTD
0                  2000
            
Sept       
      
MTD                    YTD
1000            3000
            
October      
      
MTD                   YTD
2000            5000
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40313189
1) Where are these totals to be displayed/inserted into this workbook?  On a separate sheet?  In the same sheet (Sheet1)?

2) Are these example totals derived from the example data?  If so, they do not correspond.

3) There are two years of data shown here (2014, 2015).  How do they relate to your requirement?

IMO, this will be more involved than an IF statement.

-Glenn
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 24

Accepted Solution

by:
Steve earned 250 total points
ID: 40313763
Is the attached something like what you would like?

If not, could you post the workbook with the first few numbers pre-filled based on expected results.

Ta
Steve.
U--expertsexch.xlsx
0
 
LVL 32

Assisted Solution

by:Rob Henson
Rob Henson earned 250 total points
ID: 40314317
The suggestion below won't work for the sample data posted because it doesn't start at zero.

Assuming MTD in column A and YTD in column B and no other numerical values in column A, the value for the current MTD would be the YTD less sum of previous MTD values. So lets assume, your October values are in row 15, the following will give the MTD for October:

=B15-SUM($A$1:A14)   {note the $ in $A$1}

Copy this down each time you need a new MTD value for the given YTD.

Thanks
Rob H
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 40314331
OK, now looked at attached file. My suggestion was based on data looking like the sample above, I now realise that was how the output was expected. How does the data in the attached file relate to the sample given above?

Thanks
Rob H
0
 

Author Comment

by:Kdankwah
ID: 40314476
I thank both Steve and Rob for your wonderful answers.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now