If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
find a date on sheet 2 and count text in that column
I'm lookung for the formula to use that if I was under one date on one page,
to look what date im under go to the 2nd page, find that date then count the text specified under that date. My pages are set up as follows: sheet 1 A B C D E 1| 1-oct 2-oct 3-oct 4-oct 2| john text 1 text 1 text 2 text 1 3| jack text 1 text 2 text 1 text 1 4| jeff text 2 text 2 text 1 text 2 sheet 2 A B C D E 1| 1-oct 2-oct 3-oct 4-oct 2| text 1 2 1 2 2 3| text 2 1 2 1 1 For instance, what formula would I use if I wanted to search for "1-oct" on sheet 1 for "text 1" and have the total in cell under "1-oct" on sheet 2 in line with "text 1" row? Keep in mind my dates will change so I want to be able to reference to the text that is in the cell above where my total will be. |
#2
|
|||
|
|||
=SUMPRODUCT((Sheet2!$B$1:$E$1=B$1)*(Sheet2!$A$2:$A $10=B2),Sheet2!$B$2:$E$10)
-- HTH RP "jtinne" wrote in message ... I'm lookung for the formula to use that if I was under one date on one page, to look what date im under go to the 2nd page, find that date then count the text specified under that date. My pages are set up as follows: sheet 1 A B C D E 1| 1-oct 2-oct 3-oct 4-oct 2| john text 1 text 1 text 2 text 1 3| jack text 1 text 2 text 1 text 1 4| jeff text 2 text 2 text 1 text 2 sheet 2 A B C D E 1| 1-oct 2-oct 3-oct 4-oct 2| text 1 2 1 2 2 3| text 2 1 2 1 1 For instance, what formula would I use if I wanted to search for "1-oct" on sheet 1 for "text 1" and have the total in cell under "1-oct" on sheet 2 in line with "text 1" row? Keep in mind my dates will change so I want to be able to reference to the text that is in the cell above where my total will be. |
#3
|
|||
|
|||
I want exel to find what column that date is in on sheet 1, then search that
column for that specified text, then count how many times that text appears. "Bob Phillips" wrote: =SUMPRODUCT((Sheet2!$B$1:$E$1=B$1)*(Sheet2!$A$2:$A $10=B2),Sheet2!$B$2:$E$10) -- HTH RP "jtinne" wrote in message ... I'm lookung for the formula to use that if I was under one date on one page, to look what date im under go to the 2nd page, find that date then count the text specified under that date. My pages are set up as follows: sheet 1 A B C D E 1| 1-oct 2-oct 3-oct 4-oct 2| john text 1 text 1 text 2 text 1 3| jack text 1 text 2 text 1 text 1 4| jeff text 2 text 2 text 1 text 2 sheet 2 A B C D E 1| 1-oct 2-oct 3-oct 4-oct 2| text 1 2 1 2 2 3| text 2 1 2 1 1 For instance, what formula would I use if I wanted to search for "1-oct" on sheet 1 for "text 1" and have the total in cell under "1-oct" on sheet 2 in line with "text 1" row? Keep in mind my dates will change so I want to be able to reference to the text that is in the cell above where my total will be. |
#4
|
|||
|
|||
Enter the following formula in B2 of Sheet2 and copy across and down:
=SUMPRODUCT((Sheet1!$B$2:$E$4=Sheet2!$A2)*(Sheet1! $B$1:$E$1=Sheet2!B$1)) Adjust the range accordingly. Hope this helps! In article , jtinne wrote: I'm lookung for the formula to use that if I was under one date on one page, to look what date im under go to the 2nd page, find that date then count the text specified under that date. My pages are set up as follows: sheet 1 A B C D E 1| 1-oct 2-oct 3-oct 4-oct 2| john text 1 text 1 text 2 text 1 3| jack text 1 text 2 text 1 text 1 4| jeff text 2 text 2 text 1 text 2 sheet 2 A B C D E 1| 1-oct 2-oct 3-oct 4-oct 2| text 1 2 1 2 2 3| text 2 1 2 1 1 For instance, what formula would I use if I wanted to search for "1-oct" on sheet 1 for "text 1" and have the total in cell under "1-oct" on sheet 2 in line with "text 1" row? Keep in mind my dates will change so I want to be able to reference to the text that is in the cell above where my total will be. |
#5
|
|||
|
|||
Hi
in B2 of your second sheet enter the formula: =COUNTIF(OFFSET('sheet1'!$A$1:$A$100,0,MATCH(B$1,' sheet1'!$A$1:$E$1,0)) ,$A2) and copy this formula across -- Regards Frank Kabel Frankfurt, Germany jtinne wrote: I'm lookung for the formula to use that if I was under one date on one page, to look what date im under go to the 2nd page, find that date then count the text specified under that date. My pages are set up as follows: sheet 1 A B C D E 1| 1-oct 2-oct 3-oct 4-oct 2| john text 1 text 1 text 2 text 1 3| jack text 1 text 2 text 1 text 1 4| jeff text 2 text 2 text 1 text 2 sheet 2 A B C D E 1| 1-oct 2-oct 3-oct 4-oct 2| text 1 2 1 2 2 3| text 2 1 2 1 1 For instance, what formula would I use if I wanted to search for "1-oct" on sheet 1 for "text 1" and have the total in cell under "1-oct" on sheet 2 in line with "text 1" row? Keep in mind my dates will change so I want to be able to reference to the text that is in the cell above where my total will be. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
find and search a column | jtinne | General Discussion | 4 | October 3rd, 2004 01:55 AM |
Using functions to count date format data | dljudd | Worksheet Functions | 4 | June 24th, 2004 09:25 AM |
is there a formula that can count a range of cells with text? | Frank Kabel | Worksheet Functions | 0 | March 11th, 2004 08:04 PM |
Text Count and Create new column to extra text | Fredric | Worksheet Functions | 2 | January 29th, 2004 02:41 AM |
count the production result and making the date in text format | aboiy | Worksheet Functions | 5 | October 25th, 2003 08:24 AM |