Solved

Need Help with Excel Formula

Posted on 2013-06-19
3
311 Views
Last Modified: 2013-06-19
I want to use the IFERROR function or ISNA function to do the following on my spreadsheet but I cannot seem to get it to work.
      
I want to check if cells D4=D5
If that is true, I want it to check cells E4=E5.
If that is true, return me the value Buy/Sell Occurred.

How do I do that?
0
Comment
Question by:ArisaAnsar
[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
3 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39260339
Try:

=IF(D4=D5,IF(E4=E5,"Buy/Sell Occurred",""),"")

Note:  ISNA or IFERROR isn't required here... the formula will return a null if not true.  You can insert a phrase between the sets of  double quotes if desired
0
 

Author Closing Comment

by:ArisaAnsar
ID: 39260358
Thank you so very much.
0
 
LVL 26

Expert Comment

by:pony10us
ID: 39260371
Just a little addition. You can expand on NB_VC's formula to get as creative as you want

For example:

=IF(D4=D5,IF(E4=E5,"Buy/Sell Occurred","Buy Occurred"),IF(E4=E5,"Sell Occurred","NothinghappenedToday"))

Try various combinations in D4, D5, E4 and E5 to see the results.  

I was just needing a distraction from work and thought I would play for a minute.  :)
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

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,…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
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…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

697 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