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:

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
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),""))
 

ZAX

Well-known Member
Joined
Jul 5, 2012
Messages
715
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??
 

emika

New Member
Joined
Feb 13, 2013
Messages
16
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.
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,926
Office Version
  1. 365
Platform
  1. Windows
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))
 

Watch MrExcel Video

Forum statistics

Threads
1,122,548
Messages
5,596,787
Members
414,102
Latest member
8885001133

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
Top