Autofilter and zero's in blank field questions.

B

BobT

I have an excel file with at least two worksheets.

Worksheet-2 is linked to Worksheet-1 in order to capture data I nee
for specific locations. Worksheet-2 was built by highlighting info
wanted from Worksheet-1, doing a COPY, then a PASTE SPECIAL ont
sheet-2. Before hitting OK, under Paste Special I was then able t
select an option to link this data from sheet-1 to sheet-2.

Next, I went to a column (G) sheet-2 that lists a number of location
(shops) and performed the excel AUTOFILTER function in order to sho
only inventory for a particular location.

It accomplishes some what what we are looking for but there are tw
questions remaining:

1. It seems if we want the list on sheet-2 to get updated we must go t
the Autofilter tab on (sheet-2 column-g) and reselect the filte
desired for example (shop#1) everytime.

It works, it refreshes with any updates or changes from sheet-1 bu
it's not automatic you have to remember to reselect the AutoFileter ta
on that column to update sheet-2.

Anyway to automate this? Does anyone have any ideas ?


2. My second question is this. After the PASTE Special operation blan
fields in sheet-2 show with zero's instead of being blank like o
sheet-1. A typical cell formula or reference on sheet-2 might loo
something like this: --> =Inventory!B1 or =Inventory!B2 etc.

I looked under FORMAT CELLS and did not see anything so as to not sho
zero's in sheet-2's cells but instead leave blank. Leave them blan
but still referenced/linked to sheet-1. IFBLANK maybe, that could wor
but would be some work for all the cells, I did'nt know if there was
formatting change etc that I could make. P.S - The format of th
various cells in Sheet-1 (the master table) is fine, they are blank i
there is no value in them.

Anyone know any answer to this?


BTW: Earlier I did post a thread with these two simular questions i
the 'Excel Miscellaneous Forum' as well. I have not gotten an answer o
the latest two questions above as yet, I wondered anyone in this grou
'Excel Worksheet Functions' might be able to help me out.

Thanks to all in advance ! :
 
M

Max

Just some thoughts on your 2nd Q ...

In Sheet2:

Try Tool > Options > View tab
Uncheck 'Zero values' > OK
--
hth
Max
-----------------------------------------
Please reply in newsgroup

Use xdemechanik
<at>yahoo<dot>com
for email
 
B

BobT

Thanks MAX

It worked...

Nice to know it was there under options and that easy. A lot easie
than my tenative solution where each cell looked something like this:

=IF(ISBLANK(Inventory!D6)," ",Inventory!D6) , that worked also but wa
alot of work requiring every cell to have this format.

Thanks again ! :p

Now if somebody can help me figure out the (not so) AUTOFILTER problem
Hmmm
 
M

Max

you're welcome, Bob!

btw, just some guesses on your 1st Q...

a. Not sure if it might be due to "Manual" calculation mode?

In Tool > Options > Calculation tab
Is 'Automatic' checked?
(Just to rule calculation mode out as a cause)

b. You might also want to check out MVP Debra D's nice
coverage on Autofilter Programming at:

http://www.contextures.com/xlautofilter03.html

Perhaps a combination toggling of Turning Autofilter On / Off / On
might do the job
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top