Logic Table Newbie

Patty21643

New Member
Joined
Mar 1, 2019
Messages
3
Hi- New to VBA and trying to perform a function to analyze a 3 column logic table based on certain conditions and then return a text value in another workbook. Logic table and desired output will be in same workbook, different sheets.

Logic table

Sec Type Mtg
Asset Backed AUTO
Agency Bond Mortgage Backed


Output in last column of large spreadsheet
If Sec = Asset Backed and Mtg=AUTO, return EC
If Sec= Agency Bond and Type=Mortgage Backed, return DEBT
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi Patty21643,

What do you want returned if neither of those cases are met? The formatting of your data did not come through well so you may need to list possible values under "Sec", "Mtg", and "Type" a different way for me to follow.

If there are only a few cases, an "If" formula may be the answer.

Doug
 
Upvote 0
There are about 50 scenarios and based on the conditions will always return a certain value. Given the volume of scenarios figured an if statement would be too complex. Was thinking as else if then code.
 
Upvote 0
Do you have a table of the scenarios that could be pared down to small small sample? I am thinking Index and Match but have to know more about the layout of the logic table.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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