Modify formula to return null/blanks instead of zeroes ...

jgreer7322

New Member
Joined
Apr 22, 2023
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hi

The shot below is from a home made dictionary in MS365 Excel. Fundamentally, this sheet is to show every 'x'th row, starting from row 'y' - intended to generate a random (ish) selection of Welsh for revision purposes.

When the formula gets to a row in the 'raw data' that is blank - currently c. 5.6k 'real value' rows, it returns zeroes as below; which is fine, but ... how would I/do I modify the formula to return null/blanks instead of zeroes - trying to avoid printing sheet after sheet of zeroes!

Obviously, if I do a print preview before printing, and only print pages with 'interesting' values, that's fine - but if I forget ...

Column H here in the formula contains (essentially) the sum of D1 (start from this row) and B1 (the increment); an extra (in this case) 100 on each row; H3 = 5000, H4 = 5100, H5 = 5200, and so on.

Thanks.

Jim

1688223300976.png
 

Attachments

  • 1688222827195.png
    1688222827195.png
    34.1 KB · Views: 7

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
As you have 365 why not use the filter function.
Clear out all your formulae & put this in A3 only
Excel Formula:
=LET(d,'Raw Data'!A1:D10000,s,SEQUENCE(ROWS(d)),FILTER(d,(INDEX(d,,1)<>"")*(s>=D1)*(MOD(s-D1,B1)=0)))
 
Last edited:
Upvote 0
Solution
Hi Fluff

Brilliant, Thanks. I put it in as above, but nothing happened; I changedA1:D10000 to A1:C10000 (the three columns that have data in them) and it leapt into life!

Thanks again.

Jim
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 1

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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