Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to figure out a formula for the following. I
have an order form where certain products are classified as one of two categories. THe two categories exist in a combo box control (not userform or vba). I want o add up the category total for cat1 and total for cat 2 items and based on the sums, calculate a delivery and install fee. Basically, if i have this much worth of cat1 items, charge this much D&I, if ihave this much, then.........and so forth. I have everything except how to include the combo box in the formula. Can anyone help? thanks, |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Fredy
The problem with a combo box is that you have to get the value from a linked cell. This will give a value of either 1 or 2 for two categories. The answer is to convert them back into Text. My test linked cell was in J1. In L1 I used this formula =IF(J1=1,"A","B") which converts is back to text. My Test data is in the range A6 to B12 Cat Qty A 1 A 1 B 2 B 2 A 1 A 1 Formula to calc list is =SUMIF(A7:A12,L1,B7:B12) Try this out and then adapt it for your own needs. Regards Peter -----Original Message----- I'm trying to figure out a formula for the following. I have an order form where certain products are classified as one of two categories. THe two categories exist in a combo box control (not userform or vba). I want o add up the category total for cat1 and total for cat 2 items and based on the sums, calculate a delivery and install fee. Basically, if i have this much worth of cat1 items, charge this much D&I, if ihave this much, then.........and so forth. I have everything except how to include the combo box in the formula. Can anyone help? thanks, . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
include sheet name in formula | Excel Discussion (Misc queries) | |||
include rounding in a formula | Excel Discussion (Misc queries) | |||
How do include Dates in a formula? | Excel Worksheet Functions | |||
Sum if formula to include value in col Q when no value in col P for that row | Excel Discussion (Misc queries) | |||
Modify A Formula To Include AND | Excel Worksheet Functions |