Formula help

Nova1979

Board Regular
Joined
Feb 4, 2020
Messages
111
Office Version
  1. 2010
Platform
  1. Windows
I am great full for all the help so far. Now I have another issue which is beyond my understanding. I was given a formula
=IF(INDIRECT("Sheet1!E"&ROW(A15))="y",INDIRECT("Sheet1!F"&ROW(A15)),0)
This is located in a secondary sheet and references a master sheet. It allows me to add a row on the master and have the correlating data in the second sheet move accordingly.
My problem now is the inability to remove excess blank rows on the secondary sheet
Example. I place a “Y” in the relative master cells E14, E15, E17. This is then referenced on the second sheet in rows 14, 15, 17. Now I need to shorten the second sheet for printing by removing all blank rows (in this case being row 16). I am dealing with over 1000 lines of data which is why I am after help
Unfortunately due to the data involved I am unable to currently supply a sample

Can someone help.

Thanks once again
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi, something like this maybe.

Book1
A
1Result
2ONE
3TWO
4FOUR
5SIX
6NINE
Sheet2
Cell Formulas
RangeFormula
A2:A6A2=IFERROR(INDEX(Sheet1!$F$14:$F$1000,AGGREGATE(15,6,(ROW(Sheet1!$E$14:$E$1000)-MIN(ROW(Sheet1!$E$14:$E$1000))+1)/(Sheet1!$E$14:$E$1000="Y"),ROWS(A$2:A2))),"")


Book1
EF
14YONE
15YTWO
16THREE
17YFOUR
18FIVE
19YSIX
20SEVEN
21EIGHT
22YNINE
Sheet1
 
Upvote 0
Ok. I am relatively new to formula. As I mentioned someone helped with the formula I listed. I can grasp that works however yours is far beyond me. Could you possibly explain how it works.
 
Upvote 0
After a quick base trial, it looks like it works how I need without the need to delete rows in the secondary reference sheet whilst allowing me to insert rows into the master sheet.
will it work on merged cells?
 
Upvote 0
Thank so much for your help. The formula you provided (though I have no idea how it works as it’s far beyond my understanding) works perfectly.
I have even had success incorporating it with the merged cells.
Thanks again
 
Upvote 0

Forum statistics

Threads
1,214,895
Messages
6,122,128
Members
449,066
Latest member
Andyg666

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