nested if(and) - aka case when - in excel

akswartz85

New Member
Joined
Mar 31, 2010
Messages
49
Hi all,

I'm looking for help translating a case when to excel

I want to say something like (sorry for the funky formatting, mr excel doesn't like this statement for some reason!):

<ladder 1)="" then="" "down"="" else="" "no="" change"="" end
<ladder 1)="" then="" "down"="" else="" "no="" change"="" end

<ladder 1)="" then="" 'down'="" else="" 'no="" change'="" end
case

when id = id, date2>date1, ladder2>ladder1 then up

when id= id, date 2>date1, ladder2<ladder1 then="" down=""
< ladder 1 then down

else no change
end
<ladder 1)="" then="" "down"="" else="" "no="" change"="" end

but I'm not quite sure how to do that in excel

Here's what I have for a singulars:
<ladder1),"down","other")
<ladder1),"down","other")
Code:
IF(AND(id=id,date2>date1,ladder2=ladder1),"No Change","Other")
Code:
IF(AND(id=id,date2>date1,ladder2>ladder2),"Up","Other")<ladder1),"down","other")
Code:
IF(AND(id=id,date2>date1,ladder2>ladder1),"Down","Other")

How do I combine them together? Thanks!</ladder1),"down","other")
</ladder1),"down","other")
</ladder1),"down","other")
</ladder></ladder1></ladder></ladder></ladder>
 
Last edited:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Assuming that you are trying to do this in an Excel formula (and not VBA), then maybe this:
Code:
=IF(AND(id=id,date2>date1),IF(ladder2=ladder1,"No Change",IF(ladder2>ladder1,"Up","Down")),"Other")
 
Upvote 0

Forum statistics

Threads
1,215,646
Messages
6,126,000
Members
449,279
Latest member
Faraz5023

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
Back
Top