Applying code to many discrete columns in a large spreadsheet

Che_Broludo

New Member
Joined
Sep 12, 2019
Messages
9
Hello all! I have spent hours searching and trying to figure this out on my own—no dice. So I turn to the fine folks of this forum.

To boil it down, I need code that performs the following action:

if C1 is all-caps, D1 is TRUE;
if C1 is not all-caps, D1 is FALSE;
if C1 is empty, D1 remains empty

Easy, right?

It would be, if I had a normal-sized spreadsheet with just four columns (A, B, C, and D). However, I'm working with very large spreadsheets containing dozens or hundreds of columns.

Column A contains a unique identifier code, but the rest of the spreadsheet consists of the same three column types, repeated over and over. So for the next batch, replace B1 with E1, C1 with F1, D1 with G1, etc.

(The content of the "first" columns—B, E, H, etc.—doesn't concern us. It's the "second" and "third" columns I care about: C informs D; F informs G; I informs J . . . ad infinitum.)

The sheer size of these spreadsheets introduces two challenges. The first is fairly obvious: unless I automate this, I'll spend the rest of my life going column by column. The second: there are too many cells in the range for Excel to handle in one go; it will crash (OUT OF MEMORY) unless the code is written so it only tackles a portion at a time.

This is as far as I've gotten: =IF(ISBLANK(C2),"",EXACT(C2,UPPER(C2)))

That would work fine for me if I just had a small spreadsheet, but I don't know how to scale it.

Any tips?

Thank you.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,224,828
Messages
6,181,217
Members
453,024
Latest member
Wingit77

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