eddysmithjr
New Member
- Joined
- Apr 12, 2011
- Messages
- 16
I need some helping hiding 0s in column A on a workbook.
Here is what I have, sheet 1 is a form with questions that can be answered either Yes, No, or NA.
Sheet two has A3:A49, with each cell having an =IF formula in it. Example:
=IF(Sheet1!M55="No",(Sheet2!B55),("0"))
The reason being, if the question in Sheet1!B55 is answered No (which will appear in Sheet1!M55), I need that question that was answered No, to populate in another spreadsheet for stat tracking purposes.
However, in the instance that M55 (as seen above) is answered anything but No, it auto populates in the column A on Sheet!2A49 as a "0".
This repeats over and over, so I may have 20 questions, and 30 zeroes.
I need one of two things, either a one-click macro that will hide all of the 0s, or a macro that will hide and unhide the cells with a 0 in them as necessary, so that all of the questions that populate can be in order, instead of being seperated by a lot of zeroes, I would even be happy if the macro deleted the rows with the zeroes in them if that would be easier.
Two things holding me back:
1-I'm not VBA savy at all, and can pretty much only copy and paste for right now.
2-The "0" I want to hide is not really a zero, it is the product of a formula (=IF(Sheet1!M55="No",(Sheet2!B55),("0")), that just happens to be zero, so I don't know if this will hurt progress or not?
Please help! Again, I need help deleting the cells containing products of "IF" formulas in the rang A#:A49 that result in "0," so that the ones not resulting in "0" can be the only ones left, and not seperate by a row with a 0 in it.
thank you a million times over to anyonet hat can help! I'll be sure to give feed back,
And I'm running office 2007.
Thanks again!
Here is what I have, sheet 1 is a form with questions that can be answered either Yes, No, or NA.
Sheet two has A3:A49, with each cell having an =IF formula in it. Example:
=IF(Sheet1!M55="No",(Sheet2!B55),("0"))
The reason being, if the question in Sheet1!B55 is answered No (which will appear in Sheet1!M55), I need that question that was answered No, to populate in another spreadsheet for stat tracking purposes.
However, in the instance that M55 (as seen above) is answered anything but No, it auto populates in the column A on Sheet!2A49 as a "0".
This repeats over and over, so I may have 20 questions, and 30 zeroes.
I need one of two things, either a one-click macro that will hide all of the 0s, or a macro that will hide and unhide the cells with a 0 in them as necessary, so that all of the questions that populate can be in order, instead of being seperated by a lot of zeroes, I would even be happy if the macro deleted the rows with the zeroes in them if that would be easier.
Two things holding me back:
1-I'm not VBA savy at all, and can pretty much only copy and paste for right now.
2-The "0" I want to hide is not really a zero, it is the product of a formula (=IF(Sheet1!M55="No",(Sheet2!B55),("0")), that just happens to be zero, so I don't know if this will hurt progress or not?
Please help! Again, I need help deleting the cells containing products of "IF" formulas in the rang A#:A49 that result in "0," so that the ones not resulting in "0" can be the only ones left, and not seperate by a row with a 0 in it.
thank you a million times over to anyonet hat can help! I'll be sure to give feed back,
And I'm running office 2007.
Thanks again!