Test of the content of a cell, which is a formula

mad4max

New Member
Joined
Mar 30, 2014
Messages
18
I need to create a product label concatenating the content of several cells... Now, some of them can be empty and other not...
Let's imagine that I have in a cell the result of several other cells, concatenated...
A1 contains "" or could contain a value
B1 contains "" or could contain a value
C1 contains "" or could contain a value


E1 contain: A1&" "&B1&" "&C1

Now, in the cell G1 I need to test the result of E1 and if there is a value, then put A, but if the A1, B1, C1 just contain "", then should show B...


How to construct the furmula in G1?

Thank you everybody...
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Presuming there could be spaces in A1, B1 and C1 also then try this:

=IF(E1=REPT(" ",LEN(E1)),"B","A")
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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