?
Solved

iF STATEMENT FORMULA

Posted on 2014-09-09
7
Medium Priority
?
134 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 24

Accepted Solution

by:
Steve earned 1000 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 33

Assisted Solution

by:Rob Henson
Rob Henson earned 1000 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 33

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
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 the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

718 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