Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default Find a word in a table, then use a function

Hi everybody

I have a table with the days of the week, and the shifts for each one
eg
S1 Sun
S2 Sun
S3 Sun
S1 Mon
S2 Mon
etc
on column A
and in column B, the number of items manufactured

On another table, (column D) i have ONLY the days
Sun
Mon
Tue
etc

What I want to do is to sum in column E the total for each day, by reference
to column D
something like "find this value in the other table, and add them"

usually i would have use the sumif
my problem is with the shifts
so i need to find the cells that contains especific text to sum


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Find a word in a table, then use a function

Try this in E1:

=SUMPRODUCT((A$1:A$21<"")*(RIGHT(A$1:A$21,3)=D1)* (B$1:B$21))

then copy into E2:E7.

Hope this helps.

Pete

On Oct 2, 5:14*pm, Alonso wrote:
Hi everybody

I have a table with the days of the week, and the shifts for each one
eg
S1 Sun
S2 Sun
S3 Sun
S1 Mon
S2 Mon
etc
on column A
and in column B, the number of items manufactured

On another table, (column D) i have ONLY the days
Sun
Mon
Tue
etc

What I want to do is to sum in column E the total for each day, by reference
to column D
something like "find this value in the other table, and add them"

usually i would have use the sumif
my problem is with the shifts
so i need to find the cells that contains especific text to sum


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default Find a word in a table, then use a function

Thanks Pete

it worked just great


"Pete_UK" wrote:

Try this in E1:

=SUMPRODUCT((A$1:A$21<"")*(RIGHT(A$1:A$21,3)=D1)* (B$1:B$21))

then copy into E2:E7.

Hope this helps.

Pete

On Oct 2, 5:14 pm, Alonso wrote:
Hi everybody

I have a table with the days of the week, and the shifts for each one
eg
S1 Sun
S2 Sun
S3 Sun
S1 Mon
S2 Mon
etc
on column A
and in column B, the number of items manufactured

On another table, (column D) i have ONLY the days
Sun
Mon
Tue
etc

What I want to do is to sum in column E the total for each day, by reference
to column D
something like "find this value in the other table, and add them"

usually i would have use the sumif
my problem is with the shifts
so i need to find the cells that contains especific text to sum



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Find a word in a table, then use a function

Glad to hear it - thanks for feeding back.

Pete

On Oct 2, 5:58*pm, Alonso wrote:
Thanks Pete

it worked just great


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
Find function Pivot Table dinadvani via OfficeKB.com Excel Discussion (Misc queries) 1 April 30th 08 02:58 PM
Link table from excel to word using word VBA [email protected] Excel Discussion (Misc queries) 7 January 9th 07 05:57 PM
What function will find a value in a table with X & Y Values Brian Excel Worksheet Functions 5 May 20th 06 11:55 AM
Can I Find one word in a formula Rod (Brazil) Excel Worksheet Functions 4 July 19th 05 01:01 PM
Find a word and then take certain action, else John Grossman Excel Worksheet Functions 1 January 10th 05 05:08 AM


All times are GMT +1. The time now is 06:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"