Formula to skip cells with 0 value.

erniepoe

Active Member
Joined
Oct 23, 2006
Messages
375
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a list of six columns with data (B;G). Column B is values, some of which are positive numbers, some of which are zero. Column D is dates. There are no headers on columns, but could easily add them if it would help. I would like to use a formula to construct a table of only the values in column B that are greater than 0, and only the dates in column D greater than the end of the most previous month.

I tried using the filter function and the formula FILTER(B:G,B:B>0,E:E>eomonth(today(),-1)), but unfortunately that only gave me the values in column B greater than 0, it did not filter the months correctly, and i couldnt link to the filtered table on another spreadsheet, it was just giving me 0.

Is there a better formula that might be able to accomplish this? Thanks so much for any help.

Cheers,
Ernie
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
How about
Excel Formula:
=FILTER(B:G,(B:B>0)*(E:E>EOMONTH(TODAY(),-1)))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,093
Messages
6,123,067
Members
449,090
Latest member
fragment

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