boolean functions (and - or) in IF and ELSE.IF command

dr_chocolate

New Member
Joined
Oct 13, 2002
Messages
2
I'm trying to use more than 1 criterion in an older Excel 4 macro, but cannot find out from the MS XL4 help files how to do this. My way certainly doesn't work.... Any help appreciated!!!!

=ELSE.IF(AND(ACTIVE.CELL()=1, DEREF(RC[1])=2, DEREF(R[1]C[1])=2))

If the active cell is 1, the cell to the right of it is 2 and so is the cell below that one, then....

What am I doing wrong???
Many thanks

Henk
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

COLH99

New Member
Joined
Jun 20, 2002
Messages
34
Hi dr Chocolate

Keep ELSE.IF in a cell by itself.
Then your formula in the next line.
 

dr_chocolate

New Member
Joined
Oct 13, 2002
Messages
2
Many thanks,
Found out that also the ABSREF command worked wonders:
=ELSE.IF(AND(ACTIVE.CELL()=1, ABSREF("R[+1]C[+1]", ACTIVE.CELL())=1))
All problems solved now!

Henk
 

Forum statistics

Threads
1,181,338
Messages
5,929,390
Members
436,665
Latest member
MonkeyNotDonkey

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top