Macro won't record if statement

TyeReece

Board Regular
Joined
Aug 3, 2007
Messages
136
I receive the message that the macro won't or can't record when I try to type in (or paste in) the formula:
=IF(L2="Direct Care","{B0B7824D-9E57-4F71-B86F-CD34BF05ACF5}",IF(L2="Clinical","{96359977-7DE2-444D-8071-6BEE2B1B033A}",IF(L2="Case Management","{BD052071-795C-4295-AAEF-5E9115D72D2B}",IF(L2="Administrative/Program Management","{A915D195-41F9-425D-878B-BAC8D0DB28FE}",""))))

Basically, the text is part of a validation list and the stuff in brackets are unique identifiers for each text. Is there something I'm missing or an easy fix for this?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I suspect the issue is formula length. Have you thought about using a lookup table instead? It would make maintenance easier I think.
 
Upvote 0
Thanks, I think that will work. I'm rebuilding some things I did about 4 years ago and vlookup is way shorter.
 
Upvote 0

Forum statistics

Threads
1,203,182
Messages
6,053,972
Members
444,695
Latest member
asiaciara

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