Need help with a formula!

Benny RC

New Member
Joined
Nov 4, 2010
Messages
4
Hi,

I have 2 columns. In each row either both columns are blank, or only one of the columns has a text or a number. I am trying to have 3rd column with any number or text from either of the columns. I am using the following formula but it is wrong:

=IF(AND(ISBLANK(C1),ISBLANK(D1)),"",IF(OR(ISTEXT(C1),ISNUMBER(C1)),C1,IF(OR(ISTEXT(D1),ISNUMBER(D1),D1))))

I would appreciate any suggestions!

Thanks,

Benny
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Welcome to the board...!


Try,

Code:
=IF(COUNTA(C1:D1),LOOKUP(2,1/(C1:D1<>""),C1:D1),"")

This will show the last non blank cell in C1:D1
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,086
Messages
6,128,736
Members
449,466
Latest member
Peter Juhnke

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