Flux rss
Search : in
By : Relevance Date Username
Statut : Not resolved

Macro to choose the max x value and

Jeff, on Thursday 9 October 2008 à 13:07:32
Hello,

I would like to run a macro to choose the maximum x value from 6 SETS OF numbers and the corresponding y value and continue the loop for EVERY OTHER SIX SETS OF NU,MERS AND BRING DOWN THE VALUE FROM 20000 numbers, The idea is to get a spreadshest with 3333 values after filtering the data.

MAX Best Wind(X) DIRECTION(Y)
0.032034483 327.8
0.033035561 315
0.02903125 285.9
0.02903125 306.5
0.034036638 301.8
0.042045259 303.3
0.055059268 304.6
0.039042026 314
0.040043104 303.7
0.033035561 310
0.041044182 302.2
0.036038794 282.9
0.044047414 305.8
0.04604957 304.4
0.051054958 313.4
0.049052802 326.6
0.058062501 327.7
0.072077587 319
0.059063578 323.3
0.077082975 299.6
0.059063578 308.8
Configuration: Windows Vista
Internet Explorer 7.0
Reply to Jeff  Report this message to moderators Go to last message

1


  • This message seems useful, vote!
  • Report this message to moderators
 Shandor, on Thursday 9 October 2008 à 14:47:38
I'll just warn here, that I suck at VBA. Every macro I write is done brute force. When I totally get stuck I end up here. So here my process of trying to build what you need. I'd like to help more, but this is the best I can offer.

Record a macro of:

open a new worksheet
select a cell and type in: =max(
then select the values on the first worksheet you are interested in
Then type: ) and hit enter
Then I would select the next row down and do it again so you can see how excel references groups of six cells

stop your macro recording

now go find our about ranges and how to utilize them properly
I use this link a lot the get range syntax
http://www.excel-vba.com/vba-excel-lesson-2-6-1-range-cells.­htm

Then learn how to do a for statement (you can just type: for and then hit f1 to get help on it in the VBA editor)
this link has an example of a FOR statement
http://www.excel-vba.com/vba-code-2-11-variables.htm

and more stuff here
http://www.excel-vba.com/excel-vba-contents.htm

There are other sites, i generally google what I need.

I find that working it out for myself help me learn the whole VBA faster than just asking question after question.

I know I have not been as helpful as you need, but I find the turnaround on this forum to be slower than I need, so I thought I'd give you a method to work it out on your own.
Reply to Shandor

Résultats pour Macro to choose the max x value and

Query on Excel macro - Asking a value in macr Hello, I would like to know how to write a macro that should ask in during the run, a particular value and than consider that value in its run downstream. Everytime when I run that macro It should ask me to reenter that value and it should come a a... en.kioskea.net/forum/affich-30282-query-on-excel-macro-asking-a-value-in-macr
Convert value in the cell into integer Hello, I am working on creating a macro. I want to go through the sheet and take the quantity that enter in the cell and copy and insert the row as many times as the value that enter in the cell. How do I convert the number in the cell into integer so... en.kioskea.net/forum/affich-17925-convert-value-in-the-cell-into-integer
Sum the excess value in a row of cell (Solved) Hello, i need to add sum of values as shown in the below example Ex: Given Values 8 8.5 9 9.5 8.5 9 From the above set of numbers i need to sum the value which is greater than 8. the answer should be 4.5 (0+0.5+1+1.5+0.5+1 = 4.5) Please help me what... en.kioskea.net/forum/affich-23423-sum-the-excess-value-in-a-row-of-cell

Résultats pour Macro to choose the max x value and

Install XP from your flashdiskInstall XP from your flashdisk When your computer has a defect with its CD Drive and you are unable to read any CDs on it, you can choose to install Windows XP from a USB/ Flash disk and this is done quite easily. Below is what you need to... en.kioskea.net/faq/sujet-518-install-xp-from-your-flashdisk
Disabling True Vector Service under Windows XPDisabling True Vector Service under Windows XP To shut down True Vector Service, Go to Menu “Start”> “Control Panel” and double-click on “Security Center”. In the below image, select “Windows Firewall” and choose... en.kioskea.net/faq/sujet-620-disabling-true-vector-service-under-windows-xp
Booting Windows XP in Safe ModeBooting Windows XP in Safe Mode What is Safe Mode? How to get into Safe Mode with Windows XP How to get into Safe Mode with Windows XP Home edition How to get into Safe mode by the System Configuration Utility What is Safe Mode? Safe... en.kioskea.net/faq/sujet-223-booting-windows-xp-in-safe-mode

Résultats pour Macro to choose the max x value and

Excel Macro to Save AsHello, I'd like to create a macro that will do a SAVE AS every 2 hours, and will use a date & time stamp on the file name for each save. Help en.kioskea.net/forum/affich-13946-excel-macro-to-save-as
Raid in windows F6Hello, I am installing windows on a new raid array, but when i load up the install CD press F6 and load the drivers when it goes to the copying files part it just tells me it can't find the drivers that I loaded previously. I don't know if... en.kioskea.net/forum/affich-20712-raid-in-windows-f6
Replacing data from one column to anotherHello, Is anybody help me please? I need to move data from second column to first column only if there is any data in second column. More clearly speaking in column D I have integer data almost in all row, in column G there are some integer data in... en.kioskea.net/forum/affich-28961-replacing-data-from-one-column-to-another

Résultats pour Macro to choose the max x value and

Download Xerox Phaser 6250DX Printer DriverThe printer Xerox Phaser 6250DX is a laser writer. She proposes a maximum resolution in black and white and color of 2400 X 2400 dpi. She is entirely compatible with the systems PC, Unix and Mac. Its speed d' impression in black and white and color is... en.kioskea.net/telecharger/telecharger-932-xerox-phaser-6250dx-printer-driver
Download Driver printer laser Xerox Phaser 3450DThe printer Xerox Phaser3450 is a printer laser. His maximum resolution in black and white is of 1200 x on 1200 dpi. It is entirely compatible with PC systems, Unix and Mac. His speed of impression in black and white and in colour is 25 ppm. This... en.kioskea.net/telecharger/telecharger-1105-driver-printer-laser-xerox-phaser-3450d
Download Driver scanner Kodak i260Kodak i260 of Panasonic is a scanner in the single pass for PC. This model inserts an interface: FireWire (IEEE1394). He offers an optic resolution of 300 dpi and maximum of 300 x 300 dpi. It takes care of ordinary paper. His sampling maximum at the... en.kioskea.net/telecharger/telecharger-997-driver-scanner-kodak-i260

Résultats pour Macro to choose the max x value and

Computer - xD picture cards xD Picture memory (for eXtreme Digital) is a type of memory card created by Fuji and Olympus in August 2002. The architecture of xD cards is based on NAND type flash memory circuits (EEPROM) xD picture card memory is smaller in size than a postal... en.kioskea.net/pc/xd-picture-card.php3