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: 6
Default Insert Additional Numeric Value in a cell using VBA

Merry Christmas All,

Scenario:
Worksheet cells already populated with numeric values by Excel Worksheet
Formulas.
Is it possible with Excel VBA to insert an additional numeric value in the
Top Left of various cells already populated with numeric values by Excel
Worksheet Formulas?
Can two separate numeric values exist in different areas of the same cell?
The Worksheet cells are formatted as GENERAL.

Two Charts involved -
CHART1:
Named Range "Range3" Horizontal Numeric Labels (one Row) not in any order.
Named Range "Range2" First Veritcal Numeric Labels (one Column) in Ascending
order.
Named Range "Range1" Second Vertical Numeric Labels (one Column) not in any
order.

Use CHART1, Formula to find the Row Number that should be used for CHART2
=INDEX(Range1,MATCH(1,Range2,0),0)

The Horizontal and two Vertical Numeric Labels will be used as co-ordinates
to return the Column Number of where a specific value is housed. There are
two Columns of Vertical Numeric Labels to ensure a correct match. So a value
is matched accordingly with each of the Vertical Labels and finally, one
value matched on the Horizontal Labels. The Returned Column Number needs to
be located on CHART2.
Based on the Named Ranges, this next Formula finds the relevant values in
CHART1 and Returns the correct Column Number that must be located in CHART2.

=MATCH(INDEX(Range1,MATCH(1,Range2,0),0),Range3,0)

So, the pair of co-ordinates to locate the relevant cell for numerical value
1 is Row 11, Column 9 on CHART2.

CHART2:
Use the above co-ordinates Row 11, Column 9 to find relevant cell. Top left
of this cell should now be populated via VBA with the numeric value 1 - NOT,
overwriting existing values created by Excel Worksheet Formulas.

Could a VBA process and Formula be created to automate the positioning of
numeric values 1-100 on CHART2 by using Formulas similar to the above that
locate the relevant Row and Column Numbers firstly on CHART1.

Locate Row Number:
=INDEX(Range1,MATCH(1,Range2,0),0)

Locate Column Number:
=MATCH(INDEX(Range1,MATCH(1,Range2,0),0),Range3,0)

Required Result:
Find the co-ordinates of numeric values 1-100 on CHART1. These co-ordinates
need to be applied to CHART2 to populate the Top Left of the correct cells
with the specific numeric values 1-100.

Best Wishes
Sam

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200512/1
 
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
How do I add NOT insert additional worksheet to existing workbook. Phyllis Excel Worksheet Functions 6 November 1st 09 04:11 PM
TO DELETE ONLY NUMERIC VALUES IN A CHARACTER AND NUMERIC CELL IN ramesh k. goyal - abohar[_2_] Excel Discussion (Misc queries) 1 October 28th 09 06:50 AM
formula for 'If a cell is empty then insert numeric Zero' P Ryan Nutribio Excel Worksheet Functions 4 June 18th 09 02:07 AM
How do I copy numeric section of cell from alpha-numeric cell ACCAguy Excel Worksheet Functions 8 September 8th 08 12:46 PM
only extract numeric value from alpha numeric cell Fam via OfficeKB.com Excel Discussion (Misc queries) 5 April 26th 06 06:49 PM


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