Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 247
Default Exclude #N/A values and Return Numeric values to consecutive cells in Single Row

Hi All,

I have an array of data in a single row that includes numeric and #N/A values.

I would like to return only the numeric values of the formula based array to
consecutive cells in a single row; without: empty text, blanks or #N/A values
in any of the returned cells.

Sample Data:
Row 50, column "C" to column "AG".

Column C, D, E, F, G, H, I, J
Row50 #N/A, #N/A, #N/A, 104, #N/A, 150, 179 #N/A


Expected Results:
104, 150, 179

Expected results returned to consecutive cells in a single row (no blanks, no
empty text, no #N/A).

Cheers,
Sam

--
Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Exclude #N/A values and Return Numeric values to consecutive cells in Single Row

When you say:

no blanks, no empty text
Expected Results:
104, 150, 179


Using a formula the results would be:

| 104 | 150 | 179 | "" | "" | "" | "" | "" |

Where "" is a blank cell. The cell will contain the formula but return a
blank.

If that's unacceptable then you'll need a macro to do this and you should
post in the programming ng.

Like I said before, Sam's posts are *always* the most complicated posts, bar
none! <g


--
Biff
Microsoft Excel MVP


"Sam via OfficeKB.com" <u4102@uwe wrote in message
news:7f7153aa1924e@uwe...
Hi All,

I have an array of data in a single row that includes numeric and #N/A
values.

I would like to return only the numeric values of the formula based array
to
consecutive cells in a single row; without: empty text, blanks or #N/A
values
in any of the returned cells.

Sample Data:
Row 50, column "C" to column "AG".

Column C, D, E, F, G, H, I, J
Row50 #N/A, #N/A, #N/A, 104, #N/A, 150, 179 #N/A


Expected Results:
104, 150, 179

Expected results returned to consecutive cells in a single row (no blanks,
no
empty text, no #N/A).

Cheers,
Sam

--
Message posted via http://www.officekb.com



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 247
Default Exclude #N/A values and Return Numeric values to consecutive cells in Single Row

Hi Biff,

Thank you for reply. Your formula representation looks suitable. Please Post.

T. Valko wrote:
When you say:


no blanks, no empty text
Expected Results:
104, 150, 179


Should have said, "no blanks, no empty text, between the returned numeric
values".

Using a formula the results would be:


| 104 | 150 | 179 | "" | "" | "" | "" | "" |


Where "" is a blank cell. The cell will contain the formula but return a
blank.


That looks fine, if no blanks are actually between the returned numeric
values.

If that's unacceptable then you'll need a macro to do this and you should
post in the programming ng.


Your formula representation is suitable.

Like I said before, Sam's posts are *always* the most complicated posts, bar
none! <g


<bg


Cheers,
Sam

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200802/1

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Exclude #N/A values and Return Numeric values to consecutive cells in Single Row

Assume you want the results starting cell in C53:

Array entered** :

=IF(COLUMNS($C53:C53)<=COUNT($C50:$J50),INDEX($C50 :$J50,SMALL(IF(ISNUMBER($C50:$J50),COLUMN($C50:$J5 0)-MIN(COLUMN($C50:$J50))+1),COLUMNS($C53:C53))),"")

Copied across.

If the values are in ascending order as is depicted in your sample data then
you can use a less complicated array formula** :

=IF(COLUMNS($C53:C53)<=COUNT($C50:$J50),SMALL(IF(I SNUMBER($C50:$J50),$C50:$J50),COLUMNS($C53:C53))," ")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Sam via OfficeKB.com" <u4102@uwe wrote in message
news:7f71ec39d8399@uwe...
Hi Biff,

Thank you for reply. Your formula representation looks suitable. Please
Post.

T. Valko wrote:
When you say:


no blanks, no empty text
Expected Results:
104, 150, 179


Should have said, "no blanks, no empty text, between the returned numeric
values".

Using a formula the results would be:


| 104 | 150 | 179 | "" | "" | "" | "" | "" |


Where "" is a blank cell. The cell will contain the formula but return a
blank.


That looks fine, if no blanks are actually between the returned numeric
values.

If that's unacceptable then you'll need a macro to do this and you should
post in the programming ng.


Your formula representation is suitable.

Like I said before, Sam's posts are *always* the most complicated posts,
bar
none! <g


<bg


Cheers,
Sam

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200802/1



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 247
Default Exclude #N/A values and Return Numeric values to consecutive cells in Single Row

Hi Biff,

That's Brilliant! Your last formula provided the required result. Thank you
very much for your time and help.

T. Valko wrote:
Assume you want the results starting cell in C53:


Array entered** :


=IF(COLUMNS($C53:C53)<=COUNT($C50:$J50),INDEX($C5 0:$J50,SMALL(IF(ISNUMBER($C50:$J50),COLUMN($C50:$J 50)-MIN(COLUMN($C50:$J50))+1),COLUMNS($C53:C53))),"")


Copied across.


If the values are in ascending order as is depicted in your sample data then
you can use a less complicated array formula** :


=IF(COLUMNS($C53:C53)<=COUNT($C50:$J50),SMALL(IF( ISNUMBER($C50:$J50),$C50:$J50),COLUMNS($C53:C53)), "")


Even though my values were not in ascending order, the above, less
complicated formula returned my numeric values in ascending order.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)


Cheers,
Sam

--
Message posted via http://www.officekb.com



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Exclude #N/A values and Return Numeric values to consecutive cells in Single Row

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Sam via OfficeKB.com" <u4102@uwe wrote in message
news:7f72b56b9744e@uwe...
Hi Biff,

That's Brilliant! Your last formula provided the required result. Thank
you
very much for your time and help.

T. Valko wrote:
Assume you want the results starting cell in C53:


Array entered** :


=IF(COLUMNS($C53:C53)<=COUNT($C50:$J50),INDEX($C 50:$J50,SMALL(IF(ISNUMBER($C50:$J50),COLUMN($C50:$ J50)-MIN(COLUMN($C50:$J50))+1),COLUMNS($C53:C53))),"")


Copied across.


If the values are in ascending order as is depicted in your sample data
then
you can use a less complicated array formula** :


=IF(COLUMNS($C53:C53)<=COUNT($C50:$J50),SMALL(IF (ISNUMBER($C50:$J50),$C50:$J50),COLUMNS($C53:C53)) ,"")


Even though my values were not in ascending order, the above, less
complicated formula returned my numeric values in ascending order.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)


Cheers,
Sam

--
Message posted via http://www.officekb.com



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
Return Unique Consecutive Duplicate Values across Single Row Sam via OfficeKB.com Excel Worksheet Functions 22 February 6th 07 11:44 AM
Return Unique Duplicate Numeric Values across Single Row Sam via OfficeKB.com Excel Worksheet Functions 7 January 21st 07 02:51 AM
Return Numeric Labels that have Values =4 across Single Row Sam via OfficeKB.com Excel Worksheet Functions 3 January 2nd 07 06:12 PM
Return Summed Count of Multiple Consecutive Numeric Values Sam via OfficeKB.com Excel Worksheet Functions 4 April 10th 06 10:35 PM
Return Single Instance of Numeric Values from a Column Sam via OfficeKB.com Excel Worksheet Functions 4 August 26th 05 03:10 AM


All times are GMT +1. The time now is 01:36 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"