Hi guys, I have some prices within rows like:
A B C D E F
row1 $1.02 $1.05 $1.07
So, if the price changed, the price appears in the cell, if there was no change then nothing appears in the cell. The prices and go up or down.
Now what I need to do is write a macro (or maybe make a user defined function) that will find the most recent price change (meaning that a price appears in the most recent cell, and then finds the nect most recent cell in which a price appears and calculates the difference.
Clarification guys:
Many of the cells contain nothing at all. My little example that I drew doesn't look very good.
If there is no price change then nothing apears in the cell.
So maybe $1.03 in cell 1A, then nothing in 1B then $1.01 in 1C, then nothing in 1D. I also only need to compare the two most recent prices.
For example, in the above it would be $0.02.
I would also like to be able to show positive an negative like +$0.03 or -$0.04.
Thank you all very much in advance for your help!!!
A B C D E F
row1 $1.02 $1.05 $1.07
So, if the price changed, the price appears in the cell, if there was no change then nothing appears in the cell. The prices and go up or down.
Now what I need to do is write a macro (or maybe make a user defined function) that will find the most recent price change (meaning that a price appears in the most recent cell, and then finds the nect most recent cell in which a price appears and calculates the difference.
Clarification guys:
Many of the cells contain nothing at all. My little example that I drew doesn't look very good.
If there is no price change then nothing apears in the cell.
So maybe $1.03 in cell 1A, then nothing in 1B then $1.01 in 1C, then nothing in 1D. I also only need to compare the two most recent prices.
For example, in the above it would be $0.02.
I would also like to be able to show positive an negative like +$0.03 or -$0.04.
Thank you all very much in advance for your help!!!