Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Yin
 
Posts: n/a
Default how do i create a formula for selected range?

I have a spreadsheet that contain data by category. Example:

Foundation ----------- cost 1 -----------cost 2
Foundation - guy 1 ---- $100 ---------- $150
Foundation - guy 2 ---- $120 ---------- $160 -- X
Foundation - guy 3 --- $130 ---------- $190

If I put an "X" or maybe "highlight" on column Foundation - guy2 for
example, I would like to populate his information to a different sheet.

Do you know how to go about it?

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Assume this data is in Sheet1 A1:D4

Row 1 are the headers:

Foundation ----------- cost 1 -----------cost 2


Column D contains the "X".

On another sheet, say, in A1, enter this formula and copy across to C1:

=INDEX(Sheet1!A2:A4,MATCH("X",Sheet1!$D2:$D4,0))

Biff

"Yin" wrote in message
...
I have a spreadsheet that contain data by category. Example:

Foundation ----------- cost 1 -----------cost 2
Foundation - guy 1 ---- $100 ---------- $150
Foundation - guy 2 ---- $120 ---------- $160 -- X
Foundation - guy 3 --- $130 ---------- $190

If I put an "X" or maybe "highlight" on column Foundation - guy2 for
example, I would like to populate his information to a different sheet.

Do you know how to go about it?



  #3   Report Post  
Max
 
Posts: n/a
Default

One way ..

Assume source table is in Sheet1 cols A to D, data from row2 down, and col E
is where you'll be marking the "X"

Using an adjacent empty col, col F?
Put in F2: =IF(E2="X",ROW(),"")
Copy F2 down to say, F100,
to cover the max expected data range in the source table

In Sheet2
---------
Paste the same col headers into A1: D1
Foundation ----------- cost 1 -----------cost 2


Put in A2:
=IF(ISERROR(SMALL(Sheet1!$F:$F,ROWS($A$1:A1))),"", INDEX(Sheet1!A:A,
MATCH(SMALL(Sheet1!$F:$F,ROWS($A$1:A1)),Sheet1!$F: $F,0)))

Copy A2 across to D2, fill down to D100
(cover the same range as was done in col F in Sheet1)
Format the cost cols as currency

Sheet2 will return the desired results, i.e. only those lines marked with an
"X" in col E in Sheet1, all neatly bunched at the top
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Yin" wrote in message
...
I have a spreadsheet that contain data by category. Example:

Foundation ----------- cost 1 -----------cost 2
Foundation - guy 1 ---- $100 ---------- $150
Foundation - guy 2 ---- $120 ---------- $160 -- X
Foundation - guy 3 --- $130 ---------- $190

If I put an "X" or maybe "highlight" on column Foundation - guy2 for
example, I would like to populate his information to a different sheet.

Do you know how to go about it?



  #4   Report Post  
Max
 
Posts: n/a
Default

The suggested set-up assumes there could be multiple lines with "X"'s marked
in col E in Sheet1, and you want to return all these lines in Sheet2
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--


  #5   Report Post  
Yin
 
Posts: n/a
Default

Thank you.. it's really helpful.

"Max" wrote:

One way ..

Assume source table is in Sheet1 cols A to D, data from row2 down, and col E
is where you'll be marking the "X"

Using an adjacent empty col, col F?
Put in F2: =IF(E2="X",ROW(),"")
Copy F2 down to say, F100,
to cover the max expected data range in the source table

In Sheet2
---------
Paste the same col headers into A1: D1
Foundation ----------- cost 1 -----------cost 2


Put in A2:
=IF(ISERROR(SMALL(Sheet1!$F:$F,ROWS($A$1:A1))),"", INDEX(Sheet1!A:A,
MATCH(SMALL(Sheet1!$F:$F,ROWS($A$1:A1)),Sheet1!$F: $F,0)))

Copy A2 across to D2, fill down to D100
(cover the same range as was done in col F in Sheet1)
Format the cost cols as currency

Sheet2 will return the desired results, i.e. only those lines marked with an
"X" in col E in Sheet1, all neatly bunched at the top
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Yin" wrote in message
...
I have a spreadsheet that contain data by category. Example:

Foundation ----------- cost 1 -----------cost 2
Foundation - guy 1 ---- $100 ---------- $150
Foundation - guy 2 ---- $120 ---------- $160 -- X
Foundation - guy 3 --- $130 ---------- $190

If I put an "X" or maybe "highlight" on column Foundation - guy2 for
example, I would like to populate his information to a different sheet.

Do you know how to go about it?






  #6   Report Post  
Max
 
Posts: n/a
Default

You're welcome !
Thanks for the feedback ..
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Yin" wrote in message
...
Thank you.. it's really helpful.



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
What formula is used for subtracting a range of different cells f. tim Excel Worksheet Functions 3 April 21st 23 10:07 PM
specify range name in formula with concatenated string Lori H Excel Worksheet Functions 2 July 19th 05 03:07 PM
Using a formula to create named range reference [email protected] Excel Worksheet Functions 4 June 29th 05 08:03 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
How do I use Range Names listed in a VLookup table in a formula? Essbasedvlpr32 Excel Worksheet Functions 3 December 15th 04 10:11 PM


All times are GMT +1. The time now is 12:00 AM.

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

About Us

"It's about Microsoft Excel"