bro ChemistB did this attempt, it worked perfectly, but i want a modification,
i want this formula to be modified in such a way that if information is not in
1: One table or
2: one sheet.
then how can you change this formula
the formula was
=MAX(--(Sheet1!$C$2:$C$180=A26)*Sheet1!$E$2:$E$180)
In The new attached book, the formula is used in the sheet "Voice Call Analysis & SEARCH ", the formula is applied on the table in Sheet "Invoice Details",
Requirement:
I want the formula to be applied on the tables of Shhet" Itemized Call Details",
I hope i ve made my requirement clear..
and can it be also done with Countif formula in the same book
=COUNTIF('Invoice Details'!$C$2:$C$180,B17)
His post--( ChemistB)-- was as follows.....
"
Here's my attempt.
I used the following Array formula in Sheet 2 Cell C26
Code:
=MAX(--(Sheet1!$C$2:$C$180=A26)*Sheet1!$E$2:$E$180)
and then dragged it down to cover all phone numbers.
Note: Array formulas must be entered by CNTRL SHFT ENTER
Explaination:
Sheet1!$C$2:$C$180=A26 looks at each row and returns true or false if it finds that phone number in that row. The "--" before it converts True into 1 and False into 0.
It multiplies this number (0 or 1) * the duration in the same row (column E). Because it is an array formula, it stores each of these values (1 per row) in memory and then determines which is the maximum (MAX) value and returns that.
You initially had the phone numbers on Sheet 1 as text and on sheet 2 as numbers. I made them all text so this would work."
Bookmarks