A uncomplicated approach to your problem would be to have *each* of your
variables in a simple, 2 column datalist, where one column contains the
variable name, and the other column the price (cost).
Since each variable name is unique, they can *all* be in a *single* list.
I counted 41 variables that you listed in your post.
So, say on Sheet2 you start the datalist in A1:A41, and the costs in B1:B41.
With the results of your drop-down list choices in A2: H2 of Sheet1 (Column
I and J to be ignored), enter this formula in K2:
=SUMPRODUCT((A2:H2=Sheet2!A1:A41)*Sheet2!B1:B41)
If you were going to have multiple rows of drop-down choices for many
different door types on the same sheet, and you therefore wanted to copy
this formula down Column K, don't forget to change the cell references to
absolute:
=SUMPRODUCT((A2:H2=Sheet2!$A$1:$A$41)*Sheet2!$B$1:$B$41)
You should also watch out for your "Door Width" data.
Make sure that the formats match *exactly* between the datalist and the
drop-down choices.
Those types of numbers might easily confuse XL.
--
HTH,
RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================
Oh I'm quite aware of Excel's limitations. My project in this is sort of
our 'last hurrah' in Excel before we move to an Access, or better,
solution/implementation.
OK, I understand how I'm failing you. What I am doing is making a
customized cost estimation system for a remodeler. This system not only
helps us price a job out, but it has to be easy to read - so much so that
ANY given prospect could easily view it and understand what they're seeing.
However, I see now that I've also failed to explain my immediate problem:
I do not have the logic to arrive at that one value. If I did, then I
wouldn't have a problem. Creating such logic in of itself is my problem.
On a sheet, we'll call the sheet "Doors", in Row 1 we have General Text
cells that describe what the cells underneath are - like a Jeopardy game
board. So A1 will read something like "Potent Potables" - j/k, sorry for
the SNL reference.
A1="Door Style"
B1="Door Type"
C1="Door Width"
D1="Door Swing"
E1="Jamb Width"
F1="Casing Style"
G1="T-Astrical?"
H1="Ball Catch?"
I1="Room Location"
J1="Quantity"
K1="Material Price"
Each cell underneath in a given column has a drop-down menu pointing to a
names reference:
Name, "Door Style" contains:
Colonist
Princeton
Slab
French (3x5)
French (Other)
Other
Name, "Door Type" contains:
Single Interior
Single Exterior
Double Interior
Double Exterior
Single Pocket
Double Pocket
Bi-Fold
Name, "Door Width" contains:
1/0
1/4
1/6
1/8
2/0
2/4
2/6
2/8
3/0
4/0
5/0
6/0
Name, "Door Swing" contains:
LH
RH
Name, "Jamb Width" contains:
4-9/16" Split
6-1/2" Split
Name, "Casing Style" contains:
356
356/445
445
445/Howe
356/Howe
Howe
Other
None
Name, "T-Astrical" contains:
Yes
No
Name, "Ball catch" contains:
Yes
No
Name, "Room Location" references another sheet, let's call that sheet
"Rooms"...this column and the variables within have no bearing on what I
need to accomplish: it exists for coworkers' understanding on where this
particular door is going to go.
Name, "Quantity" contains:
1 //default//
2
3
4
5
I am unsure what to put in cells K2-Kxxx at this point.
Now, in a second sheet, we'll call it "Door Price List" I have a plethora
of hard numbers which I presume will need to be setup in a similar fashion
but it would not need "Doors" I column or "DOORS" J column - "Door Price
List" I column would contain a hardcoded price per row. Then I presume I
have the lovely task of hard-writing all the doggone doors in the world in
this sheet, which their respective price in the H column per row.
What I would like is to be able to pick a single variable in each of the
cells of a row in "Doors" sheet and somehow the Doors' K column would be
able to reference the "Door Price List" sheet's appropriate H column
pricing by matching up all these variables.
I don't know how to do that, however. I can do it to a minute scale using
the IF argument, but that of course is when there's <=8 different
possibilities...I have a few hundred possibilities now and I have no clue
what is recommended at this point in time. I know conceptually what I'd
like to do with Excel but have no clue how to implement my concept.
