Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2005

Tip: Looking for answers? Try searching our database.

OFFSET??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jan Kronsell - 19 Dec 2005 16:41 GMT
I have two columns, one with numbers, one with letters.

1     A
2     N
3     B
4     N
5     S
6     S
7     X
8     N
9     E
10   N

In anotherc column I like a list of the numbers in column Am, for which
column B contains an N.

I tried the following

IF(B1="N",OFFSET(B1,0,-1);)

And this gives me

     0
     2
     0
     4
     0
     0
     0
     8
     0
     10

But I need the result to be like

2
4
8
10

That is only showing the numbers, that actually has a N in columbn B. I've
tried with combinations of MATCH and OFFSETR as well with no luck.

Any ideas?

Jan
Bernie Deitrick - 19 Dec 2005 17:04 GMT
Jan,

Use the array formula (entered using Ctrtl-Shift-Enter)

=INDEX(A:A,SMALL(IF(($B$1:$B$10="N"),ROW($B$1:$B$10),15),ROW()))

Copy down as far as you need, and put "All Done" into cell A15...

HTH,
Bernie
MS Excel MVP

>I have two columns, one with numbers, one with letters.
>
[quoted text clipped - 41 lines]
>
> Jan
Jan Kronsell - 19 Dec 2005 17:20 GMT
Thanks. That di it :-)

Jan

> Jan,
>
[quoted text clipped - 54 lines]
>>
>> Jan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.