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: 1
Default Matching headers and inserting values from a table

I would like to assign numeric values to fields of an
extract file (imported to worksheet 1) based on an
underlying table. The table looks like this and is held
on a separate worksheet called "table".

Column A Column B

GWP 1
Earned 2
RI Result CY 6
RI Result PY 7
Claims CY 4
Claims PY 5
Expenses 3
Tax
Investments
Result 8


The fields in the extract file are output in the same
order as column A above so that GWP, Earned, RI Result CY,
RI Result PY, Claims CY etc. However in an empty row
beneath these fields I'd like to reflect the values shown
by Column B. This is so I can run mulitple reports from
the same extract and effectively resort the fields to
achieve a different layout for a different report type.
Note, I dont always use all the fields for the alternative
reports, ie ignore Tax and Investments.
What VBA syntax would I use to match the descriptions in
the table with those of my extract file and where a match
is found insert the corresponding value in the row beneath
the caption. Note the caption always appears in row1
across all columns.
Can anyone provide a brief example?
Many thanks
Jacqui
 
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
Matching names and inserting spaces ILunacy Excel Worksheet Functions 0 February 15th 10 06:15 PM
Matching names and inserting spaces ILunacy Excel Worksheet Functions 3 February 15th 10 03:17 PM
Finding Most Recent Values in Col1 -- Summing Matching Values Rothman Excel Discussion (Misc queries) 5 December 20th 07 08:19 PM
Inserting text into custom headers / footers SyracusePete Excel Discussion (Misc queries) 3 March 22nd 07 03:38 PM
Cell values in custom headers davidd Excel Discussion (Misc queries) 2 August 11th 06 10:23 PM


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