"Greater than" > rersults

nighttrain20

New Member
Joined
Nov 18, 2006
Messages
15
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
 

Some videos you may like

Excel Facts

Excel Can Read to You
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
Joined
Jun 12, 2014
Messages
38,496
Office Version
365
Platform
Windows
Maybe
=IF(OR(H4="", J4=""),"",if(H4>J4,C4,O4))
 
Last edited:

nighttrain20

New Member
Joined
Nov 18, 2006
Messages
15
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
Joined
Jun 12, 2014
Messages
38,496
Office Version
365
Platform
Windows
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.

<b></b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>C</th><th>H</th><th>I</th><th>J</th><th>O</th><th>P</th><th>Q</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">4</td><td style="text-align: right;;">30</td><td style="text-align: right;;">20</td><td style="text-align: right;;"></td><td style="text-align: right;;">14</td><td style="text-align: right;;">90</td><td style="text-align: right;;"></td><td style="text-align: right;;">30</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">5</td><td style="text-align: right;;">30</td><td style="text-align: right;;">11</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">90</td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">6</td><td style="text-align: right;;">30</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">10</td><td style="text-align: right;;">90</td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">7</td><td style="text-align: right;;">30</td><td style="text-align: right;;">14</td><td style="text-align: right;;"></td><td style="text-align: right;;">20</td><td style="text-align: right;;">90</td><td style="text-align: right;;"></td><td style="text-align: right;;">90</td></tr></tbody></table><p style="width:4em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Names</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">Q4</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">H4="", J4=""</font>),"",IF(<font color="Red">H4>J4,C4,O4</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,949
Office Version
365, 2010
Platform
Windows
Personally, I would use COUNT, but same principle:

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

Watch MrExcel Video

Forum statistics

Threads
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...
Top