Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Need help to write formula in Excel to auto show only cells with values

Greetings all Excel experts!

I am using Excel 2003. Is it possible to write a formula to take a
column of data with blank cells in between in COLUMN A and transfer
those data over to a different column (COLUMN B) without the blank
cells WITHOUT using pivot and/or macros. The only way I can achieve
this today is to record a macro that would
1. Copy the entire data range in column A
2. Paste special -- paste value to column B
3. Sort column B descending.

This is the only way I know how but it is using a macro to do this.
Are there any ways to achieve this same result WITHOUT pivot and
macro? See data sample below:

Column A is what the data I'm getting. Notice that cells A4, A5 and A8
are blanks. I need it to look like in Colunn B. The final results in
Column B does not have to be in that order but it CANNOT have blank
cells in between.

Any help would be greatly appreciated.

A B
1 Forks 1 Forks
2 Knives 2 Knives
3 Spoons 3 Spoons
4 4 Chopsticks
5 5 Napkins
6 Chopsticks 6 Cups
7 Napkins 7
8 8
9 Cups 9

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Need help to write formula in Excel to auto show only cells with values

This assumes the blanks in A are empty and not blanks from formulas, select
A, press F5
select special, select constants and click OK, press Ctrl + C and paste
wherever you want,
if the values are formulas select formulas instead of constants


--
Regards,

Peo Sjoblom



"Genesis" wrote in message
oups.com...
Greetings all Excel experts!

I am using Excel 2003. Is it possible to write a formula to take a
column of data with blank cells in between in COLUMN A and transfer
those data over to a different column (COLUMN B) without the blank
cells WITHOUT using pivot and/or macros. The only way I can achieve
this today is to record a macro that would
1. Copy the entire data range in column A
2. Paste special -- paste value to column B
3. Sort column B descending.

This is the only way I know how but it is using a macro to do this.
Are there any ways to achieve this same result WITHOUT pivot and
macro? See data sample below:

Column A is what the data I'm getting. Notice that cells A4, A5 and A8
are blanks. I need it to look like in Colunn B. The final results in
Column B does not have to be in that order but it CANNOT have blank
cells in between.

Any help would be greatly appreciated.

A B
1 Forks 1 Forks
2 Knives 2 Knives
3 Spoons 3 Spoons
4 4 Chopsticks
5 5 Napkins
6 Chopsticks 6 Cups
7 Napkins 7
8 8
9 Cups 9



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Need help to write formula in Excel to auto show only cells with values

On Aug 16, 10:32 am, "Peo Sjoblom" wrote:
This assumes the blanks in A are empty and not blanks from formulas, select
A, press F5
select special, select constants and click OK, press Ctrl + C and paste
wherever you want,
if the values are formulas select formulas instead of constants

--
Regards,

Peo Sjoblom

"Genesis" wrote in message

oups.com...



Greetings all Excel experts!


I am using Excel 2003. Is it possible to write a formula to take a
column of data with blank cells in between in COLUMN A and transfer
those data over to a different column (COLUMN B) without the blank
cells WITHOUT using pivot and/or macros. The only way I can achieve
this today is to record a macro that would
1. Copy the entire data range in column A
2. Paste special -- paste value to column B
3. Sort column B descending.


This is the only way I know how but it is using a macro to do this.
Are there any ways to achieve this same result WITHOUT pivot and
macro? See data sample below:


Column A is what the data I'm getting. Notice that cells A4, A5 and A8
are blanks. I need it to look like in Colunn B. The final results in
Column B does not have to be in that order but it CANNOT have blank
cells in between.


Any help would be greatly appreciated.


A B
1 Forks 1 Forks
2 Knives 2 Knives
3 Spoons 3 Spoons
4 4 Chopsticks
5 5 Napkins
6 Chopsticks 6 Cups
7 Napkins 7
8 8
9 Cups 9- Hide quoted text -


- Show quoted text -


Peo,

Thanks. If I understand you correctly, your procedures still requires
manual clicking, copying, pasting. This would still require a macro to
perform these functions. I'm looking for a formula to automatically
remove the blank cells and show only cells with values without PIVOT
and/or MACROS.

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Need help to write formula in Excel to auto show only cells with values

Put this in B1, enter it with ctrl + shift & enter and copy down as long as
you want


=IF(ROWS(B$1:B1)<=SUM(N($A$1:$A$100<"")),INDEX($A $1:$A$100,MATCH(SMALL(COUNTIF($A$1:$A$100,"<="&$A$ 1:$A$100),SUM(N($A$1:$A$100=""))+ROWS($A$1:A1)),CO UNTIF($A$1:$A$100,"<="&$A$1:$A$100),0)),"")

Note that if you have a really large list this will be very uneconomic when
it comes to computer resources. It will slows down any large workbook, it's
much better to record a macro and run that macro

--
Regards,

Peo Sjoblom



"Genesis" wrote in message
oups.com...
On Aug 16, 10:32 am, "Peo Sjoblom" wrote:
This assumes the blanks in A are empty and not blanks from formulas,
select
A, press F5
select special, select constants and click OK, press Ctrl + C and paste
wherever you want,
if the values are formulas select formulas instead of constants

--
Regards,

Peo Sjoblom

"Genesis" wrote in message

oups.com...



Greetings all Excel experts!


I am using Excel 2003. Is it possible to write a formula to take a
column of data with blank cells in between in COLUMN A and transfer
those data over to a different column (COLUMN B) without the blank
cells WITHOUT using pivot and/or macros. The only way I can achieve
this today is to record a macro that would
1. Copy the entire data range in column A
2. Paste special -- paste value to column B
3. Sort column B descending.


This is the only way I know how but it is using a macro to do this.
Are there any ways to achieve this same result WITHOUT pivot and
macro? See data sample below:


Column A is what the data I'm getting. Notice that cells A4, A5 and A8
are blanks. I need it to look like in Colunn B. The final results in
Column B does not have to be in that order but it CANNOT have blank
cells in between.


Any help would be greatly appreciated.


A B
1 Forks 1 Forks
2 Knives 2 Knives
3 Spoons 3 Spoons
4 4 Chopsticks
5 5 Napkins
6 Chopsticks 6 Cups
7 Napkins 7
8 8
9 Cups 9- Hide quoted text -


- Show quoted text -


Peo,

Thanks. If I understand you correctly, your procedures still requires
manual clicking, copying, pasting. This would still require a macro to
perform these functions. I'm looking for a formula to automatically
remove the blank cells and show only cells with values without PIVOT
and/or MACROS.

Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Need help to write formula in Excel to auto show only cells with values

On Aug 16, 11:33 am, "Peo Sjoblom" wrote:
Put this in B1, enter it with ctrl + shift & enter and copy down as long as
you want

=IF(ROWS(B$1:B1)<=SUM(N($A$1:$A$100<"")),INDEX($A $1:$A$100,MATCH(SMALL(COU*NTIF($A$1:$A$100,"<="&$A $1:$A$100),SUM(N($A$1:$A$100=""))+ROWS($A$1:A1)),C O*UNTIF($A$1:$A$100,"<="&$A$1:$A$100),0)),"")

Note that if you have a really large list this will be very uneconomic when
it comes to computer resources. It will slows down any large workbook, it's
much better to record a macro and run that macro

--
Regards,

Peo Sjoblom

"Genesis" wrote in message

oups.com...



On Aug 16, 10:32 am, "Peo Sjoblom" wrote:
This assumes the blanks in A are empty and not blanks from formulas,
select
A, press F5
select special, select constants and click OK, press Ctrl + C and paste
wherever you want,
if the values are formulas select formulas instead of constants


--
Regards,


Peo Sjoblom


"Genesis" wrote in message


groups.com...


Greetings all Excel experts!


I am using Excel 2003. Is it possible to write a formula to take a
column of data with blank cells in between in COLUMN A and transfer
those data over to a different column (COLUMN B) without the blank
cells WITHOUT using pivot and/or macros. The only way I can achieve
this today is to record a macro that would
1. Copy the entire data range in column A
2. Paste special -- paste value to column B
3. Sort column B descending.


This is the only way I know how but it is using a macro to do this.
Are there any ways to achieve this same result WITHOUT pivot and
macro? See data sample below:


Column A is what the data I'm getting. Notice that cells A4, A5 and A8
are blanks. I need it to look like in Colunn B. The final results in
Column B does not have to be in that order but it CANNOT have blank
cells in between.


Any help would be greatly appreciated.


A B
1 Forks 1 Forks
2 Knives 2 Knives
3 Spoons 3 Spoons
4 4 Chopsticks
5 5 Napkins
6 Chopsticks 6 Cups
7 Napkins 7
8 8
9 Cups 9- Hide quoted text -


- Show quoted text -


Peo,


Thanks. If I understand you correctly, your procedures still requires
manual clicking, copying, pasting. This would still require a macro to
perform these functions. I'm looking for a formula to automatically
remove the blank cells and show only cells with values without PIVOT
and/or MACROS.


Thanks.- Hide quoted text -


- Show quoted text -


Peo,

YOU ARE THE MAN !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thanks a million!!

Lee



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,081
Default Need help to write formula in Excel to auto show only cells with v

Select the range
Press F5, click on the Special button, then check Constants & click on OK
Copy
Select the cell where you want the list to reside
Edit-Paste special-skip blanks-OK

"Genesis" wrote:

Greetings all Excel experts!

I am using Excel 2003. Is it possible to write a formula to take a
column of data with blank cells in between in COLUMN A and transfer
those data over to a different column (COLUMN B) without the blank
cells WITHOUT using pivot and/or macros. The only way I can achieve
this today is to record a macro that would
1. Copy the entire data range in column A
2. Paste special -- paste value to column B
3. Sort column B descending.

This is the only way I know how but it is using a macro to do this.
Are there any ways to achieve this same result WITHOUT pivot and
macro? See data sample below:

Column A is what the data I'm getting. Notice that cells A4, A5 and A8
are blanks. I need it to look like in Colunn B. The final results in
Column B does not have to be in that order but it CANNOT have blank
cells in between.

Any help would be greatly appreciated.

A B
1 Forks 1 Forks
2 Knives 2 Knives
3 Spoons 3 Spoons
4 4 Chopsticks
5 5 Napkins
6 Chopsticks 6 Cups
7 Napkins 7
8 8
9 Cups 9


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Need help to write formula in Excel to auto show only cells with v

That was my first answer which he rejected <bg


--
Regards,

Peo Sjoblom



"Duke Carey" wrote in message
...
Select the range
Press F5, click on the Special button, then check Constants & click on OK
Copy
Select the cell where you want the list to reside
Edit-Paste special-skip blanks-OK

"Genesis" wrote:

Greetings all Excel experts!

I am using Excel 2003. Is it possible to write a formula to take a
column of data with blank cells in between in COLUMN A and transfer
those data over to a different column (COLUMN B) without the blank
cells WITHOUT using pivot and/or macros. The only way I can achieve
this today is to record a macro that would
1. Copy the entire data range in column A
2. Paste special -- paste value to column B
3. Sort column B descending.

This is the only way I know how but it is using a macro to do this.
Are there any ways to achieve this same result WITHOUT pivot and
macro? See data sample below:

Column A is what the data I'm getting. Notice that cells A4, A5 and A8
are blanks. I need it to look like in Colunn B. The final results in
Column B does not have to be in that order but it CANNOT have blank
cells in between.

Any help would be greatly appreciated.

A B
1 Forks 1 Forks
2 Knives 2 Knives
3 Spoons 3 Spoons
4 4 Chopsticks
5 5 Napkins
6 Chopsticks 6 Cups
7 Napkins 7
8 8
9 Cups 9




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel: How do I auto expand Cells to show all the wrapped text? DonnaTypes01 Excel Worksheet Functions 5 November 25th 08 04:38 PM
Saving a copy of excel file in macro but have it auto write pano Excel Worksheet Functions 4 March 27th 07 11:54 PM
How do I write an auto macro to undo filtering at statup in Excel Jackie Excel Worksheet Functions 0 May 23rd 06 05:49 PM
How do I write formula to compare two values and pull the resulta. Renee Excel Worksheet Functions 1 February 11th 05 01:31 AM
write a formula to sum cells on different pages of the same workb. Kestle Excel Worksheet Functions 1 November 8th 04 07:53 PM


All times are GMT +1. The time now is 08:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"