![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: Apr 2002
Location: Australia
Posts: 52
|
Cos i am using a formula with about 4 If statements in it, and i am finding it hard to read and it is getting quite confusing. :|
Thanx |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
|
Yes Check Help on boolean, Vlookup, HLookup, Lookup, Choose, etc. |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
Try using the OR function
__________________
It's never too late to learn something new. Ricky |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Huntington Beach, CA USA
Posts: 327
|
"If" statements can get very confusing and
hard to read, that's why the "real guys" suggest using "select case" you may want to it. James |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
Select Case is only available in VBA but not in the Excel application.
__________________
It's never too late to learn something new. Ricky |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Apr 2002
Location: Australia
Posts: 52
|
So how do you write a formula using the VBA instead of the formula box?
|
|
|
|
|
|
#7 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Quote:
Please show us your formula (or describe in detail what you'd like to do). Thanks, Jay |
|
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Feb 2002
Location: Ahmedabad Gujarat
Posts: 303
|
if you have multiple conditions and you want to use if statements. the best way is to use.
Select Case testexpression [Case expressionlist-n [statements-n]] ... [Case Else [elsestatements]] End Select you can see the how select statement can be used by taking on line help also this is the best way to go. nishith desai http://www.pexcel.com |
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Apr 2002
Location: Australia
Posts: 52
|
=IF(ISERROR(LOOKUP(A5,week1.xls!$A$1:$A$10,0)),IF(VLOOKUP(A5,week1.xls!$A$1:$D$10,3,0)>VLOOKUP(A5,week1.xls!$A$1:$D$10,4,0),3,0),IF(ISNA(LOOKUP(A5,week1.xls!$A$1:$D$10,4)>VLOOKUP(A5,week1.xls!$A$1:$D$10,3,0)),3,0))
Thats the formula using 3 IF statements. Confusing? |
|
|
|
|
|
#10 |
|
Board Regular
Join Date: Feb 2002
Location: Ahmedabad Gujarat
Posts: 303
|
There are people you use boolean by multiplications and additions and returns the values..
one is i suppose from arnold site.. where he has explained how to use without 'IF' i have have downloaded his sample file where he has given the example .. his address http://geocities.com/aaronblood nishith desai http://www.pexcel.com |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|