Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2017, 10:56 PM
ewso ewso is offline calculate spreadsheet data Windows 10 calculate spreadsheet data Office 2016
Advanced Beginner
calculate spreadsheet data
 
Join Date: Nov 2016
Posts: 80
ewso is on a distinguished road
Default calculate spreadsheet data

I have a spreadsheet like this...
............Mon....Tues.
Joe.......yes.......no


Joe.......yes.......yes
Joe.......no.........yes
Joe.......yes.........no
Sally.....no.........yes
Sally.....no..........no
Sally.....yes.......yes
Sally.....yes........no
Sally.....no.........yes
Sally.....yes........no
Sally.....no..........yes
Greg....yes.........no
Greg....no..........no


All the names in the first column are unique. I need to go through the whole spreadsheet and have a simple way to tell me how many yes's or no's each person has on each day of the week like this...
..............Mon..........................Tues.
Joe......yes=3...no=1..........yes=2...no=2
Sally....yes=3...no=4.........yes=4...no=3
Greg....yes=1...no=1.........yes=0...no=2


Is there some macro for this? The spreadsheet is too big to have to go through the whole thing manually trying to get this information.

thanks
Reply With Quote
  #2  
Old 07-30-2017, 12:36 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline calculate spreadsheet data Windows 7 64bit calculate spreadsheet data Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,943
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

If you don't mind slightly rearranging your data, a PT will do the trick easily
Attached Files
File Type: xlsx Sheet Data.xlsx (12.6 KB, 9 views)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 07-30-2017, 02:07 AM
ewso ewso is offline calculate spreadsheet data Windows 10 calculate spreadsheet data Office 2016
Advanced Beginner
calculate spreadsheet data
 
Join Date: Nov 2016
Posts: 80
ewso is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
If you don't mind slightly rearranging your data, a PT will do the trick easily

Pecoflyer, thanks for the help, but having to rearrange all the day columns and their data into one day column would be a lot of work. Is there a way I can do this by keeping all the day columns separate from each other at the top of the spreadsheet?

Can I have the results to be like this...
...............Monday.....Tuesday
...............yes/no.......yes/no
Joe.............3..1..........2...2
Sally............3..4.........4....3
Greg...........1...1.........0....2

thanks
Reply With Quote
  #4  
Old 07-30-2017, 07:25 AM
NoSparks NoSparks is offline calculate spreadsheet data Windows 7 64bit calculate spreadsheet data Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

Perhaps you can adapt this to your requirements.
Run the Uniques_From_Column sub first to create the list of names.
Attached Files
File Type: xlsm ewso.xlsm (17.1 KB, 15 views)
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate the Average time period of a full oscilation on a set of data DDK2110 Excel 2 05-27-2017 02:15 AM
calculate spreadsheet data Trying to find a way to calculate subtotals for different sections of an invoice w/ data validation excerbated123 Excel Programming 2 02-03-2015 09:28 PM
calculate spreadsheet data how to input data vertically in spreadsheet? mikehende Excel 3 10-10-2012 11:40 PM
Displaying cell data in another spreadsheet Colonel Biggs Excel 0 07-01-2010 07:37 PM
Displaying data from spreadsheet in Userform darklide Excel 0 03-12-2010 05:42 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft