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 Returning MAX value and MATCH position in specific cells

Hi Excel Forum,

I need to do the following using Visual Basic script in a macr
module.

In the table below, I first need to find the MAX value (using the MA
function) on column F (MAX=4); this value then needs to be placed i
column G. I then need to get the Max value's position using the MATC
function; this value needs to be placed in column H. These retur
values need to be put in the adjacent columns above mentioned
corresponding to the row / position that Match has returned.


I don't know how to place the return Max value and return Matc
position in their corresponding cells per the diagram below usin
Visual Basic script in a macro module.

The return Max value in this instance should be in Row 5 Column G valu
=4, according to the positon Match has calculated, two rows down, Row
is the Start Row. I would like to show the Match position in Row
Column H value=2. I would like the script to enter the result
automatically in the relevant columns and row, wherever the Match (row
position.


Can you assist with a working example.

Table Data:

Start Row No.-4 5 6 7 8 9 10 11 12 13 14 15 16 17

Col E Freq.----1 2 3 4 5 6--7--8--9-10 11 12 13 14

Col F Info.----2 4 1 1 2 3--2--0--1--2--3--2--2--1

Col G Max.------4

Col H Match.----2

Row Col E Col F Col G Col H
No. Freq Info Max Match position
4 1 2
5 2 4 4 2
6 3 1
7 4 1
8 5 2
9 6 3
10 7 2
11 8 0
12 9 1
13 10 2
14 11 3
15 12 2
16 13 2
17 14 1


Please assist with a working example.

Thank you
QT

--
Message posted from http://www.ExcelForum.com

 
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 to determine the value within specific cell position? Eric Excel Discussion (Misc queries) 5 April 9th 10 01:15 PM
Linking a specific x/y position in a table TheMilkGuy Excel Discussion (Misc queries) 3 August 15th 07 05:25 PM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
how do I obtain position of specific value in a row of numbers anand Excel Worksheet Functions 5 September 17th 06 07:32 AM
Replacing a specific position in a cell with something else McDal Excel Discussion (Misc queries) 5 May 3rd 05 08:37 PM


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