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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,214,614
Messages
6,120,530
Members
448,969
Latest member
mirek8991

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