Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

?VBA Question. Please include comments so I can follow along and learn. There is no easy way in Excel to output the location (row and

?VBA Question. Please include comments so I can follow along and learn.

image text in transcribed

There is no easy way in Excel to output the location (row and column number) of the maximum value of an array. It is possible to do this for a single row or a single column but not an array. Create a user- defined VBA function that will take a range as the argument and the function will output the row number or column number, depending upon how you use the function. LOCATEMAX([range],1)" should output the row number of the maximum value of the array and "=LOCATEMAX(range,2)" should output the column number of the maximum value of the array. Example Output: -20 -20 4 4 6 LOCATEMAX(A1:C3,2) -20 4 There is no easy way in Excel to output the location (row and column number) of the maximum value of an array. It is possible to do this for a single row or a single column but not an array. Create a user- defined VBA function that will take a range as the argument and the function will output the row number or column number, depending upon how you use the function. LOCATEMAX([range],1)" should output the row number of the maximum value of the array and "=LOCATEMAX(range,2)" should output the column number of the maximum value of the array. Example Output: -20 -20 4 4 6 LOCATEMAX(A1:C3,2) -20 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago

Question

Explain the concept of shear force and bending moment in beams.

Answered: 1 week ago

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago