In case Gord is busy,
If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(e-mail address removed)
I tried your example Gord, but it doesn't work in the way I had hoped.
That's not due to your function but rather due to an Excel limitation.
Here's a more precise look at what I was trying to achieve...
A1 thru A10 contain a validation list of 3 duct types
B1 thru B10 contains Length dimensions
C1 thru C10 contains Width dimensions
D1 thru D10 contains the total area using one of the formulas below,
depending on the duct type selected in A1.
N20 contains the formula for Type 1 duct: =((INDIRECT("B"&ROW()))*
(INDIRECT("C"&ROW()))+8)/144
N21 contains the formula for Type 2 duct: =((INDIRECT("B"&ROW()))*
(INDIRECT("C"&ROW()))+8-12)/3.16
N22 contains the formula for Type 3 duct: =((INDIRECT("B"&ROW()))*
(INDIRECT("C"&ROW()))*(INDIRECT("D"&ROW()))
What I was hoping to do was use an IF statement in D1 thru D10 that
would look similar to this...
=IF((INDIRECT("A"&ROW())="Type 1",evalcell(N20),IF((INDIRECT("A"&ROW())
="Type 2",evalcell(N21),IF((INDIRECT("A"&ROW())="Type 3",evalcell
(N22),""))
I have had other solutions given to me but due to my lack of macro
knowledge, I couldn't figured out how to modify them to work in my
spreadsheet.
The problem appears to be passing the ROW number thru the evalcell UDF
which doesn't appear to happen.