Forum Discussion
Rosa Hernandez
Oct 04, 2017Copper Contributor
Excel Formula, combining two IF statements
I need to string together two IF statements, =IF(C7>=70, C7*0.5) and =IF(C7<=69, C7*0.65), please help
SergeiBaklan
Nov 13, 2023MVP
Perhaps
=IF( ISNUMBER(--C2)*ISNUMBER(--D2),
MIN(--C2, --D2),
IF( ISNUMBER(--C2), D2,
IF( ISNUMBER(--D2), C2,
IF(C2 > D2, D2, C2 ) ) ) )
which returns
pbasu92
Nov 13, 2023Copper Contributor
Thanks a lot Sergei. It works.
I need another favor. I need Column E to return like this in case of a blank cell (the last two rows):
C D E
11 2 2
2 11 2
a 2 a
2 a a
a b a
b a a
2 2
2 2
Thank you in advance.
- SergeiBaklanNov 15, 2023MVP
pbasu92 , you are welcome
- pbasu92Nov 15, 2023Copper ContributorThis is Perfect!!!!! Thank you so much! 🙂
- SergeiBaklanNov 15, 2023MVP