![]() |
![]() |
|
|||||||
| 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: 20
|
Does anyone know how to shorten the formula.
=IF(E7<>3,0,VLOOKUP(E2,Project!A19:O236,13,FALSE))+IF(E7<>5,0,VLOOKUP(E2,Project!A19:O236,15,FALSE))+IF(E7<>7,0,VLOOKUP(E2,Project!A19:O236,17,FALSE)) Many thanks to all Mike |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
How about this ?
=IF(OR(E7={3,5,7}),VLOOKUP(E2,Project!A19:O236,E7+10,0),0) |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 20
|
Superb anwser Juan
Thanks Mike |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|