Q
QTE
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
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