I know VBA but can't use it in my current situation.
I want to check a total versus a record total and store the new record if the current total exceeds the record total. In VBA the test would look like this:
If Range("C1")>Range("D1") then Range("D1")=Range("C1")
I tried =IF(C1>D1,D1 = C1) but it appears to be treating the equation in the TRUE area as a second logical test. Since C1 can't be > and = D1 at the same time the cell shows the logical result of FALSE no matter what values are in C1 and D1.
In an attempt to see if this is possible I tried putting the following in Cell E1: =If(C1 = D1, F1 = "Cat", G1 = "Dog"). Then I changed the values of C1 and D1 but E1 constantly displayed FALSE. If I removed the Cell references in the =IF it puts "Cat" or "Dog" in E1. It appear to me that Excel does not accept cell references in the TRUE or FALSE areas of the =IF statement.
As far as I can tell what I'm asking is impossible but I thought I'd ask in case there is a syntax trick I can use or some other function besides =IF i can use? Swapping out record highs and lows is important in statistics so it seems to me there should be a way to do it so I'm hoping one of you has some insight.
Thanks.
Bookmarks