Chaandni Wrote:
Hi,
I am trying to use the vlookup function to return several values as 1
result
into 1 single cell. For example, i have a spreadsheet which lists
several
different dpeartments. These departments may be repaeted many times in
the
spreadsheet. I need a sum of thoses values to be returned in a separate
cell
using the vlookup function. Can someone help me on this please?
Thanks
Hi Chaandni
Try This
=SUM(COUNTIF(A1:A12,"dept a")+COUNTIF(A1:A12,"dept b"))
Change the range (A1:A12) to suit your data, add as many dept's to the
formula as required
--
Paul Sheppard
------------------------------------------------------------------------
Paul Sheppard's Profile:
http://www.excelforum.com/member.php...o&userid=24783
View this thread:
http://www.excelforum.com/showthread...hreadid=482782