Excel Vlookup problem

I have created a two-worksheet Excel spreadsheet.  The first worksheet, Master Schedule, is a complicated looking affair where I layout my schedule of posting blogs.  The columns include among others:
Day
Time for the posting to occur
Platform
Blog #
Plus 17 columns for the various times of day I plan on scheduling posts

Master Schedule worksheet
So one row might indicate that on Monday, at 9:30 AM, a Twitter post will be made for my first blog of that week.  Across that row, in the column for 9:30 AM, a 1 will appear in that row.

The second worksheet is where I want to create a more visual, more easily understood grid for the schedule.

The first column shows 7 rows labeled for the days of the week.  Across the top are columns labeled for the platform (LinkedIn, Twitter, Facebook) and the time for the posting.

Visual Schedule worksheet
In my approach, I only post to LinkedIn at 7:00, 8:00, 18:00 and 22:00.  Likewise, I only post to Twitter at 7:30, 9:30, 15:30, 17:30 and 19:30.

I'm using a Vlookup formula.  Below are a few examples.

For Monday at 7:00 am, =VLOOKUP($A3,'Master Schedule'!$C$4:$T$45,5,FALSE)
For Monday at 7:30 am, =VLOOKUP($A3,'Master Schedule'!$C$4:$T$45,6,FALSE)

The problem is that my Vlookup is only working in showing the first value it finds for a posting for that day.  Thus, where Monday should reflect two postings, it only shows the first one at 9:30 AM.  Thursday should also show two, but it only shows the first one at 18:00.  Saturday should show four, but it only shows the first one at 8:45.

What approach do I need to use to pick up all the matches?  Is the answer in the function or formula or is it in how I populate the "Master Schedule" sheet.

BTW, I use the "Master Schedule" to actually create the schedule.  I want the "Visual Schedule" sheet to make it easy to see what the schedule looks like.

Thanks.
Social-Networking-Schedule.xlsx
LVL 2
coachjimAsked:
Who is Participating?
 
Ejgil HedegaardConnect With a Mentor Commented:
You could use the countifs function to combine the different criteria.

=COUNTIFS('Master Schedule'!$A$4:$A$45,B$1,'Master Schedule'!$C$4:$C$45,$A3,'Master Schedule'!$D$4:$D$45,B$2,'Master Schedule'!$U$4:$U$45,">0")

Open in new window


Then you will get the number posted for Platform, Day, Time, Made (column U).
The number will be the total for all weeks.
Social-Networking-Schedule-1.xlsx
0
 
Naresh PatelTraderCommented:
i have one trick to overcome this kind of  situation....i suggest create one column in  master schedule which combine Day & Time &  Platform Used in column A  i.e. =D4&TEXT(E4,"HH:MM")&F4
Day Time Platform Combine
so you will get your all look up values perfect,Values

if you want like this then i will further help you with formula. i had enter only one cell formula in attached with yellow background.

let me know

Thanks
Social-Networking-Schedule.xlsx
0
 
coachjimAuthor Commented:
ITJockey:

I have recreated your formula and locked in the row number so it looks like this:

=VLOOKUP($A4&TEXT(L$2,"HH:MM")&L$1,'Master Schedule'!$A$4:$U$45,MATCH('Visual Schedule'!L$2,'Master Schedule'!$A$3:$U$3,0),FALSE)

That works in any cell where it should.  Everyplace else it returns a #N/A.

What should be added to avoid that?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
coachjimAuthor Commented:
hgholt:

Thanks for you're suggestion.  My wife is calling me away right now.  I'll look at that later.

Jim
0
 
coachjimAuthor Commented:
hgholt:

It works.  Thanks.
0
 
Naresh PatelTraderCommented:
=IFERROR(as it is whole formula, "")

This will overcome with #N/A. Error is replace with ""  I.e  blank.

Thanks
0
 
coachjimAuthor Commented:
That works.  I want to accept both solutions, but give you each full points instead of splitting them.  I've learned completely new things from each.

Is there a way I can do that?  I'm guessing accept one here and then do something special?
0
 
Naresh PatelTraderCommented:
Mr.coachjim,

Thank You for generosity. But as per my opinion Mr.hgholt solution is more suitable then me, as in that you don't have to change anything in your Workbook. & as per standards of excel that is best way to achieve your desire result. it is my bad how do I forgot this .....  :)


Thanks
0
 
coachjimAuthor Commented:
Mr. itjockey & Mr. Hgholt

Arg!  That's the sound of frustration.

I appreciate that one solution required a change to the workbook and that a solution that doesn't require a change is more elegant and sometimes critical.

But I loved both solutions and learned equally from them.

And I won't argue with you, Mr. Itjockey.  You say give this one to Mr. Hgholt and I will.

I will also see if I can think of a problem to send your way.

Thanks to you both.

Jim
0
 
coachjimAuthor Commented:
This was a first for me.  I've posed questions in the past where several people submitted parts of the ultimate solution and I could easily award shared solutions.

This time I got two great and totally distinct solutions.  Either of which would have been great yet I end up just awarding one as the solution.

I'm delighted and bummed at the same time.
0
 
Naresh PatelTraderCommented:
You are welcomed!!!!!
0
 
Naresh PatelTraderCommented:
only one thing to mention ( I dint investigated yet) but if there is numerical 2 in source sheet even then COUNTIF returns with 1 or 0. And VLOOKUP returns with actual number.
I don't know how your data is in source sheet but it is just thought.

Thanks
0
 
coachjimAuthor Commented:
Mr. ITJockey

Good point and relevant to my application.

I'll get back to you directly on this.

Jim
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.