Data in columns A or B = number, display in column C

scolty1985

Board Regular
Joined
Sep 16, 2009
Messages
88
I have 2 columns, either they are both false, or 1 is a number. If one is a number, i want to copy that value to column C.

0.00032 FALSE
0.000855 FALSE
5E-06 FALSE
FALSE0.00037

<colgroup> </colgroup><tbody>
</tbody>

So column C would be

0.00032
0.000855
5E-06
0.00037
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
I have 2 columns, either they are both false, or 1 is a number. If one is a number, i want to copy that value to column C.

0.00032 FALSE
0.000855 FALSE
5E-06 FALSE
FALSE0.00037

<tbody>
</tbody>

So column C would be

0.00032
0.000855
5E-06
0.00037

Try...

=LOOKUP(9.99999999999999E+307,A2:B2)
 
Upvote 0
I'm sure there are many better ways to do this, but this dumb one should do ;) in column C:

=IF(AND(ISLOGICAL(A1),ISLOGICAL(B1)), "", IF(ISLOGICAL(A1),B1,A1))
 
Last edited:
Upvote 0
@Peter_SSs i hadnt picked up on that :(. Id modified KlingKlangs so that the "" is replaced with a reference to another cell. Pretty sure its working as i need it to now (touch wood)!
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,142
Members
448,551
Latest member
Sienna de Souza

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