![]() |
![]() |
|
|||||||
| 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 |
|
New Member
Join Date: Mar 2002
Posts: 3
|
If I type the letter "E" into J1 I want Excel to perform the auto sum feature. if there isn't an "E" in that box I want a number "0"
using this formula I was able to achieve half of that... =IF(J1="E","=SUM(K1*C8)",0) the "O" appears when it isn't an "E" however if it IS an "E" I get the typed out "=sum (k1*c8)". How do I force excel to do the math? |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Change that to
=IF(J1="E",K1*C8,0) There's no need for the SUM function there, since you're only giving it one parameter. |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 3
|
Thank you- I removed the =sum from the formula. however the math is still not being done. something else must be wrong...
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Mar 2002
Posts: 3
|
I forgot to remove the parenthesis! thank you- It works! You've saved me 3 hours of re-occuring work!
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi
Doublecheck everything. The formula given by Juan Pablo G. is correct. Tom |
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
I think Juan would want to edit what he suggested =IF(J1="E",K1*C8,0) to the shorter: =(J1="E")*(K1*C8) |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|