To Chose Number or Bigger Number

emika

New Member
Joined
Feb 13, 2013
Messages
16
Hello,
I have A1 and B1. There are three situations:

A1 B1
Situation 1. Number Text
Situation 2 Text Number
Situatio 3 Number Number


C1 should show number for first two cases and higher number in third case. Also if in first two cases the number is 0, C1 should be Blank.

It is ok if can be done by more than one step
Please help me guys. I do really appreciate your help.
 
Last edited:

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hello,
I have A1 and B1. There are three situations:

A1 B1
Situation 1. Number Text
Situation 2 Text Number
Situatio 3 Number Number


C1 should show number for first two cases and higher number in third case. Also if in first two cases the number is 0, C1 should be Blank.

It is ok if can be done by more than one step
Please help me guys. I do really appreciate your help.

Try...

=IF(COUNT(A1:B1)=2,MAX(A1:B1),IFERROR(LOOKUP(9.99999999999999E+307,1/A1:B1,A1:B1),""))
 
Upvote 0
Try this formula:
=IF(ISTEXT(A1),IF(B1=0,"",B1),IF(ISTEXT(B1),IF(A1=0,"",A1),MAX(A1:B1)))
It is ok if can be done by more than one step
Please help me guys.
What do you mean by that??
 
Upvote 0
Try this formula:
=IF(ISTEXT(A1),IF(B1=0,"",B1),IF(ISTEXT(B1),IF(A1=0,"",A1),MAX(A1:B1)))

What do you mean by that??

Thanks Zax. Works Great. That sentence was not intended for this thread, never mind. Thanks again.
 
Upvote 0
Hello,
I have A1 and B1. There are three situations:

A1 B1
Situation 1. Number Text
Situation 2 Text Number
Situatio 3 Number Number


C1 should show number for first two cases and higher number in third case. Also if in first two cases the number is 0, C1 should be Blank.
I'm wondering if in Situation 3 it is possible with your data for both numbers to be 0 and, if so, what result you want, or if negative numbers are possible?

It may be that you can suffice with just

=IF(MAX(A1:B1)=0,"",MAX(A1:B1))
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,873
Members
449,056
Latest member
ruhulaminappu

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