View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Gar3th Gar3th is offline
external usenet poster
 
Posts: 10
Default Transposing selected column headings

Hi

In Excel 2000 I have a spreadsheet with a list of staff names in column A. Columns B to P are head with different item types for which they can sign. Under these headers is either a value or text entry. I have inserted a blank row
for each header that contains an entry other than 0 or "N". Item and Amount are additional column headers.


Name Invoices Petty Cash Cheques Holiday Forms Mat Leave Item Amt
G Smith £1000 £100 0 Y N


J Brown 0 0 £100 Y Y


Jeff Black £500 £500 0 N N

Etc


Now I want to place the headers, where the entry is anything but 0 and 'N', in the blank rows starting in the next column Q headed Item and the entry in the cell below in the column headed Amount to give:


Name Invoices Petty Cash Cheques Holiday Forms Mat Leave Item Amt
G Smith £1000 £100 0 Y N Invoices£1000
Petty Ca £100
Holiday F Y
J Brown 0 0 £100 Y Y Cheques £100
Holiday F Y
Mat Leave Y
J Black £500 £500 0 N N Invoices £500
Petty Ca £500
Etc


I will be extremely grateful if anyone can supply a solution.

Regards

Gareth

PS If Edwin Tam sees this it is a follow on from the auto insert you provide
which has worked beautifully.