• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

select and copy some data to table

Hi, pedjvak!

As you surely have read here:
http://chandoo.org/forum/forums/new-users-please-start-here.14/
http://chandoo.org/forum/threads/new-users-please-read.294/
"How to get the Best Results at Chandoo.org
  • Use Relevant words in the Title and in the tag Box, This will aid future searches.
  • When drafting a question, try and lay out the question in a clear and concise way.
  • Try and tell the readers what is the situation, what have you tried and what do you want to achieve.
  • Don't leave out information more info is better"
Starting with:
hi please open the attachment
and following with:
and help me
forces people to download your file even before knowing it they'd be able or interested on reading it and helping you. If you want to place descriptions or explanations withing the uploaded files, everything's fine, but don't omit writing them at the post where you pose the question. Thank you.

Regards!
 
Hi, pedjvak!

Give a look at the uploaded file.

It uses many dynamic named ranges for easier referencing:

- In worksheet Result:

NameCell: =Result!$B$3, with data validation list =NameList
NameValueNonZeroList: =DESREF(Result!$C$1;;;1;COLUMNAS(NameValueList)) -----> =OFFSET(Result!$C$1,,,1,COLUMNS(NameValueList)), placed here but could be moved anywhere or hidden

- In worksheet Data:

DataTable: =DESREF(Data!$A$2;;;CONTARA(Data!$A:$A)-1;CONTARA(Data!$1:$1)) -----> in english: =OFFSET(Data!$A$2,,,COUNTA(Data!$A:$A)-1,COUNTA(Data!$1:$1))
NameList: =DESREF(DataTable;;0;;1) -----> in english: =OFFSET(DataTable,,0,,1)
ItemList: =DESREF(DataTable;-1;1;1;COLUMNAS(DataTable)-1) -----> in english: =OFFSET(DataTable,-1,1,1,COLUMNS(DataTable)-1)
NameValueList: =DESREF(ValueList;COINCIDIR(NameCell;NameList;0)-1;;1;) -----> in english: =OFFSET(ValueList,MATCH(NameCell,NameList,0)-1,,1,)
ValueList: =DESREF(DataTable;;1;;COLUMNAS(DataTable)-1) -----> in english: =OFFSET(DataTable,,1,,COLUMNS(DataTable)-1)

Formulas only in worksheet Result:

C1: =SI(COLUMNA()-2<=COLUMNAS(NameValueList);CONTAR.SI(DESREF(NameValueList;;;;COLUMNA()-2);">0");"") -----> in english: =IF(COLUMN()-2<=COLUMNS(NameValueList),COUNTIF(OFFSET(NameValueList,,,,COLUMN()-2),">0"),"")

C2: =SI.ERROR(INDICE(ItemList;1;COINCIDIR(COLUMNA()-2;NameValueNonZeroList;0));"") -----> in english: =IFERROR(INDEX(ItemList,1,MATCH(COLUMN()-2,NameValueNonZeroList,0)),"")

C3: =SI.ERROR(INDICE(ValueList;1;COINCIDIR(COLUMNA()-2;NameValueNonZeroList;0));"") -----> in english: =IFERROR(INDEX(ValueList,1,MATCH(COLUMN()-2,NameValueNonZeroList,0)),"")

Copy C1 across as required (at least rows columns of DataTable.
Copy C2:C3 across as required (until the 1st blank is displayed)

Just advise if any issue.

Regards!
 

Attachments

Back
Top