How to say this in VBA

Kutar

New Member
Joined
Feb 7, 2010
Messages
3
How might one say the following in VBA? Its suppose to be for all 12 months but Excel 2007 told me that I "exceeded the Nesting Levels".
What parameters need to be created to do it?


=IF(ISNUMBER(FIND(" JAN ",D27)),"JAN",IF(ISNUMBER(FIND(" FEB ",D27)),"FEB",IF(ISNUMBER(FIND(" MAR ",D27)),"MAR",IF(ISNUMBER(FIND(" APR ",D27)),"APR",IF(ISNUMBER(FIND(" MAY ",D27)),"MAY",IF(ISNUMBER(FIND(" JUN ",D27)),"JUN"," "))))))


Can you help please?


Thank you,
K
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Column D (D27) has 2 names then the 3 letter month then a noun

Here are examples of the column D
JIM SARA FEB ENGINEER
JEFF TOMMY JAN ENGINEER
LILLY JOE SEP MANAGER

etc


I'm looking to find what month is in the column D cells and paste the month into the cell next to it. All 12 months do apply.
Thank you for you help!

Scott
 
Upvote 0
Kutar

If the month is always after the second space then try :-

Code:
=MID(D27,FIND("#",SUBSTITUTE(D27," ","#",2))+1,3)

hth

Mike
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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