LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Help with VBA code for reliability report

I have pulled out all my hair, so I hope someome can help me...
I have an aircraft reliability report in Excel, in which data have been
manually input until now. The format of the worksheets and graphs works well,
so I don't want to change it. The data sheets in this file have the last 24
months in column B to Y (date format like aug.06). The actual months will be
updated every time the report is issued. The data sheets also have something
called ATA codes. These are located in A9 to A42 (text format with values
like 21, 22, 32,56) This range and the values never change. To illustrate, it
looks like this:

Sheet920011
|A |B |C |
5 | |Okt.04 |Nov.04 |

9 |21 | | |
10|22 | | |
12|24 | | |

There are lots of other columns/fields for flying hours and calculations,
but that is not important for what I need. There is one matrix (sheet) like
above for each serialnumber aircraft.

I now run a query in an Oracle application to get the data which will go into
the matrix above. This query gives me aircraft serialnumber, month (as in
row 5
above), ATA code (as in column A above), and number of occurances per
aircraft.
Structure is occurances per ATA code per month per serialnumber . Note that
the number of records will vary if there are no occurances of a particular
ATA code. When I have imported the data to a sheet in the Excel file, sorted
by A, B, C, it
looks like this:

Inputsheet
|A |B |C |D |
1|920011|Okt.04 |21 |5 |
2|920011|Okt.04 |24 |2 |
3|920011|Nov.04 |22 |4 |

I have tried all kinds of different ways to put the right data in the right
place, without success.

What I need is some VBA code which loops through the inputsheet, finds the
data
based on criteria from sheet920011 A9:A42 (fixed values) and B5:Y5 (variable
values), and copies it into the corresponding cell in sheet920011. With the
correct code, looking at the example above, Inputsheet D1 should go to
Sheet920011 B9, D2 to B12, and D3 to C10.

I really hope some of you with guru status can help me here.

 
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
can excel calculate inter rater reliability? Brian Boru Excel Discussion (Misc queries) 1 March 9th 10 01:05 PM
Inter-rater reliability question inter-rater Excel Worksheet Functions 1 September 28th 08 12:23 PM
Reliability and Confidence and Excel Gerigto Excel Discussion (Misc queries) 5 September 5th 07 03:04 AM
Reliability issue with some code Dean[_9_] Excel Programming 0 March 25th 06 01:32 PM
reliability of macro results KHashmi316[_20_] Excel Programming 2 June 21st 05 11:04 PM


All times are GMT +1. The time now is 09:49 PM.

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"