You are here:

# Excel/breaking down a code

Advertisement

Question
Jan,
Hello, I have the following in one of my workbooks and was hoping you could break it down for me as to what it is doing step by step. I want to try to use it or part if it in other sheets but can't figure how the functions go together. I need to use arrays to fill in sheets in various ways and hope to learn from current pormulas. Following is the code.
=IF(ISNA(MATCH(IF(OFFSET(Sheet1!A3,0,MATCH(\$A\$1,Sheet1!\$B\$1:Sheet1!\$GQ\$1,0))=0,"",OFFSET(Sheet1!A3,0,MATCH(\$A\$1,Sheet1!\$B\$1:Sheet1!\$GQ\$1,0))),\$J\$4:\$J\$85,0)),IF(AND(ROW(A4)<65,ROW(A4)>24),IF(OFFSET(Sheet1!A3,0,MATCH(\$A\$1,Sheet1!\$B\$1:Sheet1!\$GQ\$1,0))=0,"",OFFSET(Sheet1!A3,0,MATCH(\$A\$1,Sheet1!\$B\$1:Sheet1!\$GQ\$1,0))),""),IF(AND(MATCH(IF(OFFSET(Sheet1!A3,0,MATCH(\$A\$1,Sheet1!\$B\$1:Sheet1!\$GQ\$1,0))=0,"",OFFSET(Sheet1!A3,0,MATCH(\$A\$1,Sheet1!\$B\$1:Sheet1!\$GQ\$1,0))),\$J\$4:\$J\$85,0)>20,MATCH(IF(OFFSET(Sheet1!A3,0,MATCH(\$A\$1,Sheet1!\$B\$1:Sheet1!\$GQ\$1,0))=0,"",OFFSET(Sheet1!A3,0,MATCH(\$A\$1,Sheet1!\$B\$1:Sheet1!\$GQ\$1,0))),\$J\$4:\$J\$85,0)<63),IF(OFFSET(Sheet1!A3,0,MATCH(\$A\$1,Sheet1!\$B\$1:Sheet1!\$GQ\$1,0))=0,"",OFFSET(Sheet1!A3,0,MATCH(\$A\$1,Sheet1!\$B\$1:Sheet1!\$GQ\$1,0))),""))
Hope you can do it for me. Thanks in advance either way.
John

Answer
Hi John,

What a beast :-)

It is almost impossible to work out what the formula does without a proper dataset and examples. Can you perhaps put the spreadsheet in question on Skydrive (or dropbox, or whichever online file sharing system you like, but remove sensitive information first!) and share a link to it here?
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

#### Jan Karel Pieterse

##### Expertise

Excel and Excel/VBA questions

##### Experience

Excel MVP

Organizations
Self employed Excel developer

Education/Credentials
Bachelor in Chemical Engineering

Awards and Honors
Microsoft MVP award since 2002

Past/Present Clients
Shell, Fortis bank, ABN-AMRO bank, Morgan Stanley, ...

©2016 About.com. All rights reserved.

Browse Answers: