Using

JoshuaZeno

New Member
Joined
Mar 9, 2021
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi there! I am currently trying to return a specific value in the "Result" column using "If" statements. In the picture, some policies are the same with the exception of the last three or two digits (003 or 03 is a different version of the same policy for 001 or 01 respectively) If the Subfund is the string "* BC Riders on UL" AND the COI Type is the string "N/A", I would like to return the COI Type of its original policy number. For example, with the conditions listed above, for Row 2 I would like "Result" to return its original policy COI Type (LEV). And in row 5, I would like "Result" to return YRT since this row satisfies the two string conditions above and thus will return the COI Type of its original (001 or 01) policy. Could someone help me produce this formula for the "Result" column? (Please ignore row 4, it's just there to show values are not the same in each column)

1617210992797.png
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
MrExcelPlayground (version 2).xlsb
ABCD
1PolicyIDSubfundCOI TypeResult
2099649446U 003* BC Riders On ULN/ALEV
3099649446U 001* BC Riders On ULLEVWhat here?
4H082394T 01* BC PermYRTWhat here?
5H041466U 01* BC Riders On ULYRTWhat here?
6H041466U 03* BC Riders On ULN/AYRT
Sheet48
Cell Formulas
RangeFormula
D2:D6D2=IF(AND(C2="N/A",B2="* BC Riders On UL"),VLOOKUP(LEFT(A2,LEN(A2)-1)&"1",$A$2:$C$6,3,FALSE),"What here?")
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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