?
Solved

excel scripting, count

Posted on 2013-11-20
6
Medium Priority
?
378 Views
Last Modified: 2013-11-22
Hi, i have an excel question

in one excel file, two sheets
sheet1,
column1 as name
aaa
bbb
ccc
ddd
column2 as count

sheet2,
colume1 as member
aaa, "asdg"
aaa, "gadsds"
ccc, "dafdsgfdsag"
eee, "dagsd"
bbb, "dsaghdshjh"

I would like count how many records for sheet1 column1 if they are in the sheets.

thanks a lot!

s
0
Comment
Question by:BLarry9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 21

Expert Comment

by:oleggold
ID: 39663996
take countif(vlook
0
 

Author Comment

by:BLarry9
ID: 39664018
looks like i need use vlookup in sheet1 B2
to compare sheet1 A2 with sheet2 columnA

but the text is not totally match,
in sheet1, is aaa
in sheet2, is aaa,"klhjashg"

please provide more information. thanks
0
 
LVL 21

Expert Comment

by:oleggold
ID: 39664031
then use search to search for "aaa" in  aaa,"klhjashg"
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 21

Expert Comment

by:oleggold
ID: 39664036
nest count or countif,vlookup or search to achieve the required reesult
0
 

Author Comment

by:BLarry9
ID: 39664048
I am not an excel scripting person, please provide more information...

today is this first time i am doing this....
0
 
LVL 2

Accepted Solution

by:
samrad1 earned 2000 total points
ID: 39665208
Hey! I used a countif to the other sheet, and a search to extract the name on sheet 2, I've attached the file to this reply, take a look!


Formula for extracting the name in Sheet2 cell B2:
=LEFT(A2, SEARCH(",",A2) - 1)

Formula in Sheet1 cell B2 for counting the occurrences on Sheet2:
=COUNTIF(Sheet2!$B$2:$B$6,Sheet1!A2)

Example.xlsx
0

Featured Post

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cancel future meetings from user mailboxes in Office 365 using Remove-CalendarEvents
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question