Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For each row I need to determine which of 3 columns has the max numbe
of hours and then populate Column A with the appropriate indicator. Example of desired results: MaxHours INVESTMENT CORE MISC CORE 80 100 3 I am new to Excel macros/VBA and would appreciate any assistance. Thanks, Clare Marie :cool -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
a non VBA solution. Put the following formula in cell A2 =INDEX($B$1:$D$1,1,MATCH(MAX(B2:D2),B2:D2,0)) and copy this down -- Regards Frank Kabel Frankfurt, Germany For each row I need to determine which of 3 columns has the max number of hours and then populate Column A with the appropriate indicator. Example of desired results: MaxHours INVESTMENT CORE MISC CORE 80 100 3 I am new to Excel macros/VBA and would appreciate any assistance. Thanks, Clare Marie cool: --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the solution. It works perfectly for what I asked.
However, now I find that I need to populate ColA with just a one-lette Indicator based on the Column name which contained the maximum amoun of hours, not the Column name itself -- Message posted from http://www.ExcelForum.com |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
could you explain the logic behind this one-letter indicator? -- Regards Frank Kabel Frankfurt, Germany Thanks for the solution. It works perfectly for what I asked. However, now I find that I need to populate ColA with just a one-letter Indicator based on the Column name which contained the maximum amount of hours, not the Column name itself. --- Message posted from http://www.ExcelForum.com/ |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Frank,
The 3 Columns containing hours a Core, Investment, and KPHC Based on which column contains max hours, Col A will contain either a 'C', 'I' or 'K' (using first letter of the column name). This logic is needed in addition to the formula you provided in you first post. Many thanks for your continued help. Clare Mari -- Message posted from http://www.ExcelForum.com |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
use =LEFT(INDEX($B$1:$D$1,1,MATCH(MAX(B2:D2),B2:D2,0)) ,1) -- Regards Frank Kabel Frankfurt, Germany Hi Frank, The 3 Columns containing hours a Core, Investment, and KPHC Based on which column contains max hours, Col A will contain either a 'C', 'I' or 'K' (using first letter of the column name). This logic is needed in addition to the formula you provided in your first post. Many thanks for your continued help. Clare Marie --- Message posted from http://www.ExcelForum.com/ |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This works great and I used the instructions from the 'Help
documentation to propagate this formula for the entire column, with th exception of the header cell. It works but gives me an N/A in th Indicator Column if the row isn't populated. Is there a more effective way of inserting a formula throughout th column which would keep the cell empty rather than populate it with a N/A? Thanks, Clare Mari -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Finding matches in two columns | Excel Worksheet Functions | |||
Finding E-mails in different columns and trying to put them in one | Excel Worksheet Functions | |||
Finding a calculated Value across Columns | Excel Worksheet Functions | |||
Finding entries across columns | Excel Worksheet Functions | |||
Finding a match in several columns | Excel Worksheet Functions |