Excel Formula Question

vharp91

New Member
Joined
Jul 24, 2020
Messages
15
Office Version
  1. 2016
Platform
  1. Windows
I need a formula that will return a "yes" in column Q if there is a number present in cells in column H AND column I that is greater than zero. Essentially, I want to see if there has been data present in the prior 2 quarters. If the number in either cell of column H and I is greater than zero, but there is a zero in the other column, I want to return a "no" in the cell in column Q. If both cells of column H and I contain a zero, then I want it to return a "no" in the cell of column Q. Essentially, the formula would only return a "yes" if there are numbers larger than zero in both cells of column H and I.

1675295036862.png
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Book1
HIJ
13Q20222Q2022Historical
205no
326yes
440no
500no
600no
700no
857yes
Sheet1
Cell Formulas
RangeFormula
J2:J8J2=IF(H2*I2,"yes","no")
 
Upvote 2
Wait a moment! I was going to provide an answer that was a lot wordier and a lot less elegant!

Will that always work? (If (expression<>0 then true otherwise no? )
 
Upvote 0
if expression is something that can be evaluated as a number <>0

Book1
AB
1-1.5TRUE
2-1TRUE
30FALSE
4FALSE
51TRUE
61.5TRUE
Sheet1
Cell Formulas
RangeFormula
B1:B6B1=IF(A1,TRUE,FALSE)
 
Upvote 1
If column Q in image was exactly your manual output (There is 1 number>0 at least), try:
=IF(OR(H3>0,I3>0),"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,412
Members
448,960
Latest member
AKSMITH

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