![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Join Date: Mar 2002
Posts: 465
|
Hello To All:
The user will enter data into cells that fall within columns A:C, which will then put the formulas in column D to work. Cells in column E will use Data Validation in order to allow the user to select from a list of disciplines. Currently, cells A10:B13 house the disciplines and their cost, which allows the formulas in column F to work only if done manually. The goal is to place a formula into the cells in column F that would automatically perform the calculation once the user selects the desired Discipline from the drop-down menu...is that possible? Thanks...Anthony ******** ******************** ************************************************************************>
[HtmlMaker 2.32] To see the formula in the cells just click on the cells hyperlink or click the Name box PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
#2 |
|
Join Date: Aug 2003
Location: England
Posts: 4,584
|
Hello
Try in F2, =D2*VLOOKUP(E2,$A$10:$B$13,2,0) Does this work? (I haven't tested it). This is not necessary. Sorry, forgot to mention to sort A10:B13 in ascending order by Col A.
__________________
------------------------- Hope this is helpful. ------------------------- only a drafter, but broadening my Excel knowledge. |
|
|
|
|
|
#3 |
|
Join Date: Aug 2003
Location: England
Posts: 4,584
|
Hello
Brian, I wrote this, incorrectly obviously, because I only found out about the ,0 at the end of the VLOOKUP. But thank you for correcting me, much appreciated, something else I have learnt. WHERE HAS YOUR POST GONE?
__________________
------------------------- Hope this is helpful. ------------------------- only a drafter, but broadening my Excel knowledge. |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: California
Posts: 3,857
|
=SUMPRODUCT(($A$10:$A$13=E2)*($B$10:$B$13)*(D2))
|
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 39,503
|
Sort A10:B13 on its first column, which would enable to use a fast lookup formula in F2...
=D2*LOOKUP(E2,$A$10:$B$13) or, A10:B13 as is, a SumIf formula in F2... =D2*SUMIF($A$10:$A$13,E2,$B$10:$B$13) which is also fast. |
|
|
|
|
|
#6 |
|
Join Date: Mar 2002
Posts: 465
|
...And fast it was - Thank You...Thank you All!
Anthony |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|