Hi George,
I didn't explain very well and, as I said, it is a very precise job!
But it works for me, so don't lose courage.
From your post:
<Press and hold CTRL-SHIFT-ENTER, release all buttons,
| Go to your webpage, select your formula, copy your formula by "CTRL+C",
| Go back to sheet 2, paste your formula into A1 by "CTRL + V>
here is where it goes wrong.
First copy the formula from my post,
Then select A1 on Sheet2, Click in the formula bar, Paste the formula there and then press CTRL-SHIFT-ENTER
The rest seems OK to me
Good luck and do let us know your results!
--
Kind regards,
Niek Otten
Microsoft MVP - Excel
| Hi, Niek:
|
| Thanks for the help! Maybe I am stupid enough and I did not get it.
| Here is what I did. Please tell me where I made a mistake.
|
| Under sheet 1:
| Select A1:C4
| Insert>Name>Define, type "LookupTab"
|
| Under sheet 2:
| Select A1
| Press and hold CTRL-SHIFT-ENTER, release all buttons,
| Go to your webpage, select your formula, copy your formula by "CTRL+C",
| Go back to sheet 2, paste your formula into A1 by "CTRL + V", position
| my cursor on the small "+" sign located in the right bottom corner of
| cell A1 and drag it down to A10, then extend it to colum B, C, D and so
| on.
|
| It looks like it give me rows with 0 input under column A in sheet 1.
| That's not what I want. I only need rows with input of "1" under column
| A in sheet 1 IN THE SAME ORDER.
|
| Please point out where I made a mistake. I really appreciate your help.
|
| Thanks,
|
| George
| Niek Otten wrote:
| > Hi George,
| >
| > This is rather precise work!
| >
| > Here we go.
| >
| > Select A1:C4 on Sheet1.
| > Insert>Name>Define, type "LookupTab" without the quotes. OK.
| >
| > Select A1 on Sheet2.
| >
| > The following formula must be entered with CTRL-SHIFT-ENTER, that is, press and hold down SHIFT and CTRL, press ENTER and
release
| > all.
| > You can copy the formula from here and paste it IN THE FORMULA BAR, Do not press ENTER yet,
| >
| > Press CTRL-SHIFT-ENTER
| >
| > Here's the formula:
| >
| >
=IF(ISERROR(SMALL(IF(LookupTab=1,ROW(LookupTab)),ROW(1:1))),"",INDEX(LookupTab,SMALL(IF(LookupTab=1,ROW(LookupTab)),ROW(1:1)),COLUMN(A1)))
| >
| > After you entered it the way described above, it will show between curly brackets because it is an array formula.
| >
| > Now you can copy down let's say 10 rows, and then copy right A1:A10 to columns B and C
| >
| > Please let us know whether you succeded.
| >
| >
| > --
| > Kind regards,
| >
| > Niek Otten
| > Microsoft MVP - Excel
| >
| >
| > | Hi, Niek:
| > |
| > | Thanks for the response. I read your links but I do not fully
| > | understand. Could you please show me in details? Anyway, I woul like
| > | this to be an AUTOMATIC procedure.
| > |
| > | Thanks again,
| > |
| > | George
| > |
| > | ***************************************************************************************************************************
| > |
| > | Niek Otten wrote:
| > | > Hi George,
| > | >
| > | > Explained here:
| > | >
| > | >
http://office.microsoft.com/en-us/assistance/HA012260381033.aspx
| > | >
| > | >
| > | > You'll be lookig up 1 in Column A and reurn multiple rows
| > | >
| > | > --
| > | > Kind regards,
| > | >
| > | > Niek Otten
| > | > Microsoft MVP - Excel
| > | >
| > | > | Dear All:
| > | > |
| > | > | I have a excel workbook which contains two worksheets. Sheet 1 is my
| > | > | input page. Sheet 2 is my summary page.
| > | > |
| > | > |
| > | > | When my BINARY input numbers in any row under column A which is under
| > | > | sheet 1 are equal to 1, I would like the whole row to be copied to
| > | > | sheet 2.
| > | > | When my input numbers in any row under column A which is under sheet 1
| > | > | are equal to 0, the whole row will NOT be copied to sheet 2.
| > | > |
| > | > |
| > | > | However, I don't like any gaps in sheet 2 AND I would like to keep the
| > | > | same order in sheet 2 as in sheet 1. In addition, I would like this to
| > | > | be done in an automatic procedure. No autofilter or any other manual
| > | > | efforts. The following is an illustration of what I would like to see:
| > | > |
| > | > |
| > | > | Under sheet 1
| > | > |
| > | > |
| > | > | Column A ColumnB Column C ......
| > | > |
| > | > |
| > | > | row1 1 Text1 1
| > | > | row2 0 Text2 2
| > | > | row3 0 Text3 3
| > | > | row4 1 Text4 4
| > | > |
| > | > |
| > | > | Since there are inputs in cell A1 and A2, the whole row 1 and row 2
| > | > | will be copied AUTOMATICALLY to sheet 2 in the same order WITHOUT any
| > | > | gap as follows:
| > | > |
| > | > |
| > | > | Under sheet 2
| > | > |
| > | > |
| > | > | ColumnA Column B Column C
| > | > | row1 1 Text1 1
| > | > | row2 1 Text4 4
| > | > |
| > | > |
| > | > | Anybody knows how to achieve this? It is my headache. I really
| > | > | appreciate your help! Thank you so much and I am looking forward to
| > | > | hearing from you soon!
| > | > |
| > | > |
| > | > | George
| > | > |
| > |
|