Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
adelaide
 
Posts: n/a
Default find text in column h and total the corresponding numbers if colum

hello
i am a total newb to macros/vb.
my problem is . Weekly I receive a speadsheet in which column H contains
randomly entered words depicting work performed by an individual in different
areas of their work. in column D is the total amount of time taken for that
piece of work.

I wish to search column H for a specific string and then total the
corresponding entry in column d to work out how much time was spent on the
searched for item.
make sense?
can anyone help me with this?
thank you in anticipation.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Michael M
 
Posts: n/a
Default find text in column h and total the corresponding numbers if colum

Hi Adelaide
Try
=SUMIF(Column H,"my word",Column D)
Where Column H is your data range for text
"My Word" is the text string
and Column D is your range to be summed.
You can put this formula any where you like or in a macro

HTH
Michael

"adelaide" wrote:

hello
i am a total newb to macros/vb.
my problem is . Weekly I receive a speadsheet in which column H contains
randomly entered words depicting work performed by an individual in different
areas of their work. in column D is the total amount of time taken for that
piece of work.

I wish to search column H for a specific string and then total the
corresponding entry in column d to work out how much time was spent on the
searched for item.
make sense?
can anyone help me with this?
thank you in anticipation.

  #3   Report Post  
Posted to microsoft.public.excel.misc
wjohnson
 
Posts: n/a
Default find text in column h and total the corresponding numbers if colum


If you want to see 1 total for the item in column H which might have
more than 1 entry - then I would try the following: Enter the following
in Cell I1 or any other blank cell. Replace the "XXXXXX" what you want
to look for.
This will only work if the cell contains only the "Text" you want to
find, (i.e Apples, it will not work if the cell is "APPLES10")
=SUMIF(H:H,"XXXXXX",D:D).
If you want to "Know what cell contains your text, and have it indicate
it in column I then you can use the following formula - enter into cell
I1 and copy down as far as you need to go.
=IF(H1="XXXXXX",D1)
If it somethin else you might need to give more information of how
Column H is setup and how you want to "Total" Column D.


--
wjohnson
------------------------------------------------------------------------
wjohnson's Profile: http://www.excelforum.com/member.php...o&userid=29640
View this thread: http://www.excelforum.com/showthread...hreadid=508805

Reply
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
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Add total number of rows (text) in a column rostroncarlyle Excel Worksheet Functions 1 December 15th 05 06:25 AM
Arithmetical Mode of Criteria in Multiple Non-Adjacent columns Sam via OfficeKB.com Excel Worksheet Functions 4 July 14th 05 09:15 PM
Find the combination of numbers that when added equal a reqired total?? Handsy11 Excel Worksheet Functions 5 July 12th 05 04:55 PM
I NEED TO SUM NUMBERS ON A COLUMN THAT HAVE TEXT AND NUMBERS FORMULA Excel Worksheet Functions 4 February 23rd 05 09:19 PM


All times are GMT +1. The time now is 10:14 PM.

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"