Conditional Lookup Help

bhope78

New Member
Joined
Feb 24, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello trying to solve a conditional lookup problem was thinking a conditional vlookup or a If(and( statement but I am not sure what the syntax should be.

Thanks in advance.

excel.png
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Here is the XL2BB code not sure how this works....


Conditional Lookup.xlsx
ABCDEFGHIJKLM
1
2
3Prior MonthCurrent MonthExpected Result
400No Episode in PeriodIf prior month is equal to zero and current month is equal to zero then return "No Episode in Period"
501Episode in current monthIf prior month is equal to zero and current month is greater than zero then return "Episode in Current Month"
610No RecidivateIf prior month is greater than zero and current month is equal to zero then return"No Recidivate"
711RecidivateIf prior month is greater than zero and current month is greater than zero then return "Recidivate"
820No Recidivate
902Episode in current month
1022Recidivate
1121Recidivate
12
13
Sheet1
 
Upvote 0
Hi Fluff,

Not sure how to parse that code that you that you generated it is showing as XL2BB code but I am not sure how to render it in excel format so I can see your excel formula....
 
Upvote 0
Upvote 0
The formula is shown below the mini sheet, also if you click one of the cells with a formula it will appear in the formula bar of the mini sheet.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
For future reference

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Conditional lookup help needed
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,214,956
Messages
6,122,465
Members
449,085
Latest member
ExcelError

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