Solved

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

Posted on 2013-01-29
6
245 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
Comment Utility
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
Comment Utility
i have an email address column, would that work as a unique field?
0
 
LVL 92

Expert Comment

by:Patrick Matthews
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

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

Expert Comment

by:helpfinder
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

771 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now