Vlook-up + ???? formula

merz

New Member
Joined
Jun 14, 2011
Messages
30
I am looking for a formula which would find text in cells (vlook-up?), in this case, bn, wh, gv, bl - which are abbreviations for our office locations, and add the number of times it finds those locations (abbrv) for every employee on the list. We designate their locations by the above abbreviations. The abbreviations are in column A. I created column F to be the full name of the location and I would like the total count in colmn G.

In other words if "bn" is entered in several rows throughout the spreadsheet, I would like to count how many times it appears. This gives us a head count for each employee at that particular location.

As always -- thank you!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
It sounds like you may want some kind of countif() or sumproduct (or countifs() if you have 2007 or above)... Can you provide a small sample of what the data looks like and what the desired result should look like?
 
Upvote 0
See below for a sample of the spreadsheet. Location is Column A, Last Name B, First Name C. As I explained in my previous post, in Column G I want the total count of employee's on individual rows for each location. There are four. I more or less, want to put in a formula to look for CV, CN, BL, and WH, on all the rows of the spreadsheet, and put the totals in.

Location Last Name First Name
CV
CN
BL
WH
 
Upvote 0
So... for CV you only need:

=countif(A:A,"CV")

...which in the sample from post #3 would return 1 (CV shows up just once).

Maybe I'm missing something here; if there's more to it, please post a small sample that includes all the fields (at least the ones needed to evaluate the formula) and the desired result of the formula.
 
Upvote 0
To: taigovinda --

OMG! You are just awesome!!!! It worked beautifully!!!! Was the formula really that easy - duh? And here I thought

Everyone who provides assistance on this site is just so fabulous! What would we do without you. Give yourself a BIG {{{hug}} for me :)

Do you also provide assistance on another site for Word, Outlook, etc. as well? Just in case the need should arrive.

Have a super day and a most fabulous weekend, because I wish it so.
 
Upvote 0
Hi Merz, glad it worked! :)

I've gotten help on here with using Excel to automate Word and Outlook... not sure what would be the good sites that specialize in those as I don't use them too much... Happy computing!

Tai
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,308
Members
452,904
Latest member
CodeMasterX

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top