Conditional Nested if function

dave84dd

New Member
Joined
Feb 3, 2015
Messages
16
Hello,

I have a tricky, well, I think it is tricky formula I need to write.

The idea is that any item that starts with "A" and number after "B" and numbers after "C" and numbers after "E" and numbers after or finally "K" and numbers after I would like the letter returned. Everything whatever the combination is would be ignored.

I was thinking a nested IF AND function however I haven't been able to get it to work therefore I'm reaching out to the Excel guru's of this forum.

[TABLE="class: grid, width: 354"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Number[/TD]
[TD]Desired results[/TD]
[TD]Notes about Results[/TD]
[/TR]
[TR]
[TD]A08071-H[/TD]
[TD]A[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]B08054[/TD]
[TD]B[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]CCA-TBA[/TD]
[TD] [/TD]
[TD]This items should be ignored[/TD]
[/TR]
[TR]
[TD]C08071[/TD]
[TD]C[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]E04534[/TD]
[TD]E[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]K40585[/TD]
[TD]K[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]HLA[/TD]
[TD] [/TD]
[TD]This items should be ignored[/TD]
[/TR]
</tbody>[/TABLE]

As always thanks for the help in advance.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Copy B2 down.
Excel Workbook
AB
1NumberResult
2A08071-HA
3B08054B
4CCA-TBA
5C08071C
6E04534E
7K40585K
8HLA
Sheet1
 
Upvote 0
Perfect! You rock! Thanks....I knew I was on the right path.....just couldn't get around the bolder blocking the road....

:)
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,994
Members
452,542
Latest member
Bricklin

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