# "Greater than" > rersults

#### nighttrain20

##### New Member
Hello,

I thought I had this worked out.

I am trying to get the points in cell C4 to show up in z3 IF "H4-20"or "J4-14" which in this case is H4-20, to show up in cell "Z3" =IF(H4>J4,C4,O4) This formula is located in Cell "Z3"

But without a score put in h4 or J4 it will show "O4'S 90" in "Z3"...I need it to remain blank until a score is put in the cell

Example below.

"C4" "H4" "J4" "O4"

30 Tampa Bay 20 14 Carolina 90

I HOPE I EXPLAINED IT CORRECT.

THANKS,

tONY

### Excel Facts

Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

#### Fluff

##### MrExcel MVP, Moderator
Maybe
=IF(OR(H4="", J4=""),"",if(H4>J4,C4,O4))

Last edited:

#### nighttrain20

##### New Member
Thanks for the quick response.

That created the word "true" to appear in the cell. I wanted the number from C4 to appear if its true...... if not true a zero to appear .

#### Fluff

##### MrExcel MVP, Moderator
With that formula if either H4 or J4 are blank Z4 will be blank, otherwise Z4 will display either C4 or O4 depending on which of H4 & J4 is greater.
I've put the formula in Q4 for convenience.

#### Scott Huish

##### MrExcel MVP
Personally, I would use COUNT, but same principle:

=IF(COUNT(H4,J4)<2,"",IF(H4>J4,C4,O4))

1,095,232
Messages
5,443,263
Members
405,221
Latest member
danthesuperman

### This Week's Hot Topics

• Copy entire row if CountA <>0 to another sheet
[B]I want to copy entire row if CountA <>0 for column J7:AM7 (headers on J6:AM6) and so on till the last used cell is column D and paste the...
• Select last used Row in Table
I have created a Table in a Worksheet which is locked to prevent user errors and protect formula. Some of the cells require freetext entries which...
• excel workbook: do not allow certain file name
Hello all, Don't think this has ever been asked before, but how do I restrict file save [Before_Save Event] if the name of the file being saved...
• fixing problem autofilter
hello i need help about my code when i search by code in textbox it doesn't show anything this is my data [ATTACH type="full"...
• “Weight”
Hi, i’ve got a long sheet filled with weights such as kg,g,L & ml. i can build a formula to convert kg into g and liter into ml. How ever, my...
• How to capitalize everything before a certain character?
In column A, I have some text: Hello good day.mp3 Hello good day.flac etc. I'd like to capitalize everything before the period. I don't need the...