LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
DMS DMS is offline
external usenet poster
 
Posts: 9
Default Summing Like Element Array Values

All,

I am trying to come up with a way to identify and then sum like Elements in
an Array.

For Example, Lets Say I have an array that contains the following items
1.First Name
2.Last Name
3.Hours worked

The Macro I am witing is adding this type of data to an Array, but I don't
want there to be duplicate array items for the same First and Last Name.

So lets say the first item in my Array is John, Smith, 20. Before I add the
next item to the Array, I want to make sure that the First and Last name
aren't already in the Array, if it is already in the Array, then it should
add the hours to the existing Array item.

Or, is there a way to sum like elements after an Array is created?

Thanks for your help.

DMS
 
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
Summing values from array Garth Excel Worksheet Functions 7 April 6th 06 04:57 PM
array functions and complex element values frustrated Excel Worksheet Functions 0 March 13th 06 11:44 PM
Set array element to empty Raul Excel Programming 2 March 2nd 05 03:53 PM
Further Array Element question S G Booth Excel Programming 2 February 25th 05 03:54 PM
Array element Andrea[_8_] Excel Programming 5 December 7th 04 08:24 PM


All times are GMT +1. The time now is 09:41 AM.

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"