Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# IF And

Posted on 2011-03-01
Medium Priority
706 Views
Experts,

I am trying to figure out why the record highlighted in Red towards the very bottom does not state an amount in Column L row 197.  There is comparing of dates and such and I am not certain exactly why the record above does state a USD Equivalent but the one hightlighted in red does not.  Can someone make sense of that formula?

thank you

row 197, column L
the statement is as follows (too large for me to understand)
=IF(AND(\$F197>\$L\$19,\$C197<\$L\$18),IF(\$G197="USD",\$H197,(IF(\$G197=\$H\$4,\$H197*\$L\$4,(IF(\$G197=\$H\$5,\$H197*\$L\$5,(IF(\$G197=\$H\$6,\$H197*\$L\$6,(IF(\$G197=\$H\$8,\$H197*\$L\$8,(IF(\$G197=\$H\$9,\$H197*\$L\$9,(IF(\$G197=\$H\$10,\$H197*\$L\$10,0))))))))))))),0) LCcost.xls
0
Question by:pdvsa
[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

LVL 33

Accepted Solution

jppinto earned 2000 total points
ID: 35011804
=IF(AND(\$F197>\$L\$19,\$C197<\$L\$18)....

This is the first test on your formula. Both conditions must be met for the IF function to execute the "true" part of the function. If you check the values on cells F197>L19 this condition is true (16/02/11>01/10/10) but the second condition is not true C197<L18 (16/02/11<01/01/11). So the AND condition is false thus the formula returning 0. If you try changing the value on cell C197 to say 16/02/10 then you will get a result on cell L197 of:

449,595.24

jppinto
0

Author Closing Comment

ID: 35012491
thanks
0

## Featured Post

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
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.
###### Suggested Courses
Course of the Month11 days, 16 hours left to enroll