Complex-ish IF statement

jamorin

New Member
Joined
Sep 27, 2008
Messages
33
Howdy folks. Here is the problem.

Three columns of data labeled Tract, Block and Lot.

What the Data to display as follows:
T#B#L# when each column has data
B#L# when there is only data in columns the Block and Lot columns
L# when there data only in the Lot Column

As you can see below, I have an IF statement that does this fine.

Where I would like some help is the next step where the combined output will only put information for the columns that apply such as:

T#L# when there is just data in the Tract and Lot columns, or
T#B# when there is only data in the Tract and Block Columns

I figure it is one more IF statement but I'm getting lost

As a bonus I'd love to know how to do it in VBA as well.

Excel Workbook
ABCDE
1TractBlockLotCombined
2537125T537B12L5
3125TB12L5
45L5
561124T611B2L4
64124116T412B41L16
71512TB15L12This one is not correct
82747TB27L47This one is not correct
910051T100B51LThis one is not correct
104623T4B62L3
Sheet1
 
Just realize my post was no different than the formula you already had - there is a way to do macros on worksheet change, I'm not as familiar with that however.
 
Last edited:
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,224,587
Messages
6,179,734
Members
452,939
Latest member
WCrawford

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