Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Offset function

2 views
Skip to first unread message

Eva

unread,
Oct 20, 2009, 12:26:01 PM10/20/09
to
I have the data in sheet 1 as follows
col A - blank or "new"
col B - name
col c - number

I need to create in sheet2 report that takes only "new" data from column A
col B - name
col c - number

I thought about the offset function - any ideas?

--
Greatly appreciated

Jacob Skaria

unread,
Oct 20, 2009, 12:34:01 PM10/20/09
to
In sheet2 A1 try the below formula...Copy/drag the formula to cells to the
right ColB/C and then copy the formula down as required. Please note that
this is an array formula. An array formula can perform multiple calculations
and then return either a single result or multiple results.You create array
formulas in the same way that you create other formulas, except you press
CTRL+SHIFT+ENTER to enter the formula. If successful in 'Formula Bar' you can
notice the curly braces at both ends like "{=<formula>}"

=IF(ROW(A1)<=COUNTIF(Sheet1!$A:$A,"?*"),INDEX(Sheet1!A:A,SMALL(IF(Sheet1!$A$1:$A$100<>"",ROW($A$1:$A$100)),ROW(A1))),"")

If this post helps click Yes
---------------
Jacob Skaria

Eva

unread,
Oct 20, 2009, 12:38:01 PM10/20/09
to
it is so brilliant!
Thank you very much
--
Greatly appreciated

Ms-Exl-Learner

unread,
Oct 20, 2009, 12:38:05 PM10/20/09
to
Try this...

Using Indirect
=INDIRECT("Sheet1!A1")
=INDIRECT("Sheet1!B1")
=INDIRECT("Sheet1!C1")

Using Offset
=OFFSET(Sheet1!A1,0,0)
=OFFSET(Sheet1!A1,0,1)
=OFFSET(Sheet1!A1,0,2)

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------

T. Valko

unread,
Oct 20, 2009, 12:38:38 PM10/20/09
to
Try this...

Assume the data on Sheet1 is in the range A2:C20

Enter this array formula** on Sheet2 in cell A2:

=IF(ROWS(A$2:A2)>COUNTIF(Sheet1!$A:$A,"new"),"",INDEX(Sheet1!B:B,SMALL(IF(Sheet1!$A$2:$A$20="new",ROW(Sheet1!A$2:A$20)),ROWS(A$2:A2))))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

Copy across to B2 then down until you get blanks meaning all relative data
has been extracted.

--
Biff
Microsoft Excel MVP


"Eva" <E...@discussions.microsoft.com> wrote in message
news:07DAA0F9-9A99-4A79...@microsoft.com...

Eva

unread,
Oct 20, 2009, 1:25:37 PM10/20/09
to
Hi Ms-Exl-Learner - this doesnt' work, but the formula made by Jacob works
perfectly, so thank you for your time
--
Greatly appreciated

Eva

unread,
Oct 20, 2009, 1:25:07 PM10/20/09
to
One more question. Everything work very well, but I was trying to get rid of
the headings - so I would like to start my formula in sheet2 from A2 Sheet1.
I was trying to change the formula myself but it didn't work. Can you have a
look at this once again? Thank you very much
--
Greatly appreciated

Ashish Mathur

unread,
Oct 20, 2009, 1:26:19 PM10/20/09
to
Hi,

Try this

1. Say your data is in range B5:D10 (Sheet1)
2. In B4:D4, type headings - Status, Name and Number
3. In B12, type Status
4. In B13, type New
5. In Sheet2, type Name and number in B4:C4
6. Click on cell B6 of sheet2
7. Go to Data > Filter > Advanced Filter
8. In Action, select "Copy to another location"
9. In the list box, select B4:D10 of sheet1;
10. In criteria, select b12:B13 of sheet1
11. In the copy to box, select B4:C4 of sheet2
12. Click on Finish

Hope this helps

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Eva" <E...@discussions.microsoft.com> wrote in message
news:07DAA0F9-9A99-4A79...@microsoft.com...

Jacob Skaria

unread,
Oct 20, 2009, 1:38:01 PM10/20/09
to
To get only the entries with "new" try the below.. in sheet2 A2 and copy
across/down as required

=IF(ROW(A1)<=COUNTIF(Sheet1!$A:$A,"new"),INDEX(Sheet1!A:A,SMALL(IF(Sheet1!$A$1:$A$100="new",ROW($A$1:$A$100)),ROW(A1))),"")

If this post helps click Yes
---------------
Jacob Skaria

Eva

unread,
Oct 20, 2009, 2:07:03 PM10/20/09
to
Thank you Ashish, but I prefer the formula. I know about this option :)
--
Greatly appreciated

Eva

unread,
Oct 20, 2009, 2:59:03 PM10/20/09
to
Hi Jacob
I tried already to change the formula with "new", but it doesn't work, but
it realy is not a big problem, so I will leave it as it is.
Thank you for your help
--
Greatly appreciated

Eva

unread,
Nov 12, 2009, 4:44:02 PM11/12/09
to
Thanks, it is great!
--
Greatly appreciated
Eva


"T. Valko" wrote:

> .
>

T. Valko

unread,
Nov 12, 2009, 6:32:27 PM11/12/09
to
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Eva" <E...@discussions.microsoft.com> wrote in message

news:03C4A889-5F04-4022...@microsoft.com...

0 new messages