Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Help on Array and Index function

Hello:

I have the problem how to re-format the data. I have attached the
sample sheet. The original data was in Sheet-A and already define the
name as "Master". May I know how can I make it work on Sheet-B?

Sheet-A Original Data:
Host
Category
ItemName
ItemValue1
OAP004
System Overview
Domain Name
DOMAIN1
OAP004
System Overview
Operating System
Microsoft(R) Windows 200 Standard Edition
OAP004
Network TCP/IP
IP Address
192.168.11.26


Sheet-B Re-format Data:
Host
Domain Name
Operating System
IP Address
OAP004
DOMAIN1
Microsoft(R) Windows 200 Standard Edition
192.168.11.26



The First row is the header.

Thanks a lot!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Help on Array and Index function

I think a little bit more information would be helpful. Will there be other Host names on Sheet-A (with their own unique information)? How is the Host name getting into Sheet-B... are you typing it and wanting the other information looked up or, if there will be more than one Host, are you wanting all the Host names populated on Sheet-B automatically? For a single Host name, will there **always** be three rows of information on Sheet-A? Will the rows of information on Sheet-A **always** be in the same order (for each Host)?

Rick

"Blue Fish" wrote in message ...
Hello:

I have the problem how to re-format the data. I have attached the sample sheet. The original data was in Sheet-A and already define the name as "Master". May I know how can I make it work on Sheet-B?

Sheet-A Original Data:
Host
Category
ItemName
ItemValue1

OAP004
System Overview
Domain Name
DOMAIN1

OAP004
System Overview
Operating System
Microsoft(R) Windows 200 Standard Edition

OAP004
Network TCP/IP
IP Address
192.168.11.26


Sheet-B Re-format Data:
Host
Domain Name
Operating System
IP Address

OAP004
DOMAIN1
Microsoft(R) Windows 200 Standard Edition
192.168.11.26



The First row is the header.

Thanks a lot!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Help on Array and Index function

Sorry for the information not enought. Yes, it will have another
hostname. The hostname in Sheet-B is Manual copy. For the Hostname in
Sheet-A, it will have more than 3 rows. The order of Sheet-A will not
have the same order but the Hostname I will sort in order.

Thanks!

Rick Rothstein (MVP - VB) wrote:
I think a little bit more information would be helpful. Will there be
other Host names on Sheet-A (with their own unique information)? How
is the Host name getting into Sheet-B... are you typing it and wanting
the other information looked up or, if there will be more than one
Host, are you wanting all the Host names populated on Sheet-B
automatically? For a single Host name, will there **always** be three
rows of information on Sheet-A? Will the rows of information on
Sheet-A **always** be in the same order (for each Host)?

Rick


"Blue Fish" wrote in
message ...
Hello:

I have the problem how to re-format the data. I have attached
the sample sheet. The original data was in Sheet-A and already
define the name as "Master". May I know how can I make it work on
Sheet-B?

Sheet-A Original Data:
Host
Category
ItemName
ItemValue1
OAP004
System Overview
Domain Name
DOMAIN1
OAP004
System Overview
Operating System
Microsoft(R) Windows 200 Standard Edition
OAP004
Network TCP/IP
IP Address
192.168.11.26


Sheet-B Re-format Data:
Host
Domain Name
Operating System
IP Address
OAP004
DOMAIN1
Microsoft(R) Windows 200 Standard Edition
192.168.11.26



The First row is the header.

Thanks a lot!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Help on Array and Index function

On Sheet-B, put the following formulas in the indicated cells and copy them down as necessary...

B2: =IF(ISNUMBER(MATCH(A2,'Sheet-A'!A:A,0)),INDEX('Sheet-A'!D:D,SUMPRODUCT(('Sheet-A'!A$2:A$3000=A2)*('Sheet-A'!C$2:C$3000="Domain Name")*ROW(A$2:A$3000))),"")

C2: =IF(ISNUMBER(MATCH(A2,'Sheet-A'!A:A,0)),INDEX('Sheet-A'!D:D,SUMPRODUCT(('Sheet-A'!A$2:A$3000=A2)*('Sheet-A'!C$2:C$3000="IP Address")*ROW(A$2:A$3000))),"")

D2: =IF(ISNUMBER(MATCH(A2,'Sheet-A'!A:A,0)),INDEX('Sheet-A'!D:D,SUMPRODUCT(('Sheet-A'!A$2:A$3000=A2)*('Sheet-A'!C$2:C$3000="Operating System")*ROW(A$2:A$3000))),"")

As long as the columns in the rows are laid out as you have shown them, you do not have to sort the row order for these formulas to work. One note though, as constructed, the formulas will only work for data up to Row 3000... if you will have data in rows higher than 3000, you will have to change the 3 occurrences of 3000 in *each* formula to the highest row number you will ever expect to have data in.

Rick


"Blue Fish" wrote in message ...
Sorry for the information not enought. Yes, it will have another hostname. The hostname in Sheet-B is Manual copy. For the Hostname in Sheet-A, it will have more than 3 rows. The order of Sheet-A will not have the same order but the Hostname I will sort in order.

Thanks!

Rick Rothstein (MVP - VB) wrote:
I think a little bit more information would be helpful. Will there be other Host names on Sheet-A (with their own unique information)? How is the Host name getting into Sheet-B... are you typing it and wanting the other information looked up or, if there will be more than one Host, are you wanting all the Host names populated on Sheet-B automatically? For a single Host name, will there **always** be three rows of information on Sheet-A? Will the rows of information on Sheet-A **always** be in the same order (for each Host)?

Rick

"Blue Fish" wrote in message ...
Hello:

I have the problem how to re-format the data. I have attached the sample sheet. The original data was in Sheet-A and already define the name as "Master". May I know how can I make it work on Sheet-B?

Sheet-A Original Data:
Host
Category
ItemName
ItemValue1

OAP004
System Overview
Domain Name
DOMAIN1

OAP004
System Overview
Operating System
Microsoft(R) Windows 200 Standard Edition

OAP004
Network TCP/IP
IP Address
192.168.11.26


Sheet-B Re-format Data:
Host
Domain Name
Operating System
IP Address

OAP004
DOMAIN1
Microsoft(R) Windows 200 Standard Edition
192.168.11.26



The First row is the header.

Thanks a lot!



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Help on Array and Index function

Thanks a lot for your kindly help. It was quite useful for me!

For remove the limitation of the 3000. Can I use "Sheet-A'!C:C"?


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Help on Array and Index function

If you are using XL2003 or earlier, no... array functions can't use a full
row or column reference in XL2007 you can use it, but you probably
shouldn't... making the array iterate over all the rows in the column is not
as efficient as limiting the iterations over the maximum number of rows that
will ever be used.

Rick

"Blue Fish" wrote in message
...
Thanks a lot for your kindly help. It was quite useful for me!

For remove the limitation of the 3000. Can I use "Sheet-A'!C:C"?


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Help on Array and Index function

Hi Rick,

Thanks a lot for your information. It was working on my excel with
your formula. I am trying to digest what is the function doing.

Thanks a lot!

Rick Rothstein (MVP - VB) wrote:
If you are using XL2003 or earlier, no... array functions can't use a
full row or column reference in XL2007 you can use it, but you
probably shouldn't... making the array iterate over all the rows in
the column is not as efficient as limiting the iterations over the
maximum number of rows that will ever be used.

Rick

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
Indirect function in Index/Match Array hoosier41 Excel Discussion (Misc queries) 5 June 20th 08 11:09 PM
Array formula on INDEX function not working vsoler Excel Worksheet Functions 8 June 3rd 07 08:14 PM
Incorporating INDEX function into Array Formula (CNTRL-SHIFT-ENTER ExcelMonkey Excel Worksheet Functions 4 February 5th 07 09:01 PM
Returning an array from the INDEX function Agenor Excel Worksheet Functions 2 November 28th 06 01:44 AM
Using INDEX function to return array row. RBI Excel Worksheet Functions 1 October 4th 06 04:21 PM


All times are GMT +1. The time now is 02:08 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"