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
Solved

Using V Look ups to return number of value from a list

Posted on 2013-01-29
6
270 Views
Last Modified: 2013-02-24
Hi Experts

The company i work for has asked me to troll through an excel sheet with thousands of entries to find the number of times each guest has stayed with us in the past. I've tried to go through several V lookup tutorials but they dont seem to make sense. Is it possible to use V lookups to get the information that i require or is there a better way?

Any help would be appreciated

Thanks
0
Comment
Question by:emlynrg
  • 3
  • 2
6 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 38830809
Assuming you have a column with a "guest ID" or a "guest name", I would simply create a PivotTable.

Use the guest ID/name column as a row field, and drag any other column into the data area and have it aggregate by count.

If you have a date column in your source data, you could even use that as a column field in the PivotTable; if you group that by, say, year, you can get finer granularity and discover not just how many times a person stayed with you, but how many times in each year, month, or whatever time period.
0
 

Author Comment

by:emlynrg
ID: 38830831
i have an email address column, would that work as a unique field?
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 38830908
If that is the best you have, then it will have to do :)

Its suitability for your purpose will depend on whether:
Most of your records have an email address; and
A given person is using the same email address each time s/he stayed with you
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:emlynrg
ID: 38830999
well i'll have a go this afternoon and let you know how i get on.
0
 
LVL 19

Expert Comment

by:helpfinder
ID: 38831042
I would go with pivot table (if you can identify each person as unique, but it would be a requirement also for VLOOKUP).
something like on my example
example.xlsx
0
 

Author Comment

by:emlynrg
ID: 38831997
Hi Guys

thanks for the input, turns out it kinda worked but didn't really give me the info that i wanted. There is however another sheet with the same info just displayed differently.

in the second sheet there is no duplicate info, instead there are 4 extra columns each with a value of "", "F", "m" or "y". what i would like to do is create a formula to calculate how many times a guest has stayed, by adding +1 every time its finds a F,M or Y in one of the columns. i had a go at making a formula but i'm not that familiar with them. i was able to get it to calculate one column but i dont know how to get it to count +1. Any ideas?

Heres the formula that works but only returns a 1 or a 0.

=IF(OR(A3="F";A3="M");+1;IF(OR(B3="F";B3="M");+1;0))
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

808 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