#1   Report Post  
Junior Member
 
Posts: 4
Default Index and Match

I think this should be simple, but I'm sure am struggling with it. So hopefully someone here can help.

I have a spreadsheet that I'm trying to track the songs our band plays at church and how often they are used.
Column A is the song title
Column B is the total number of times it's been played (this works)
Column C is the date it was last used (this doesn't work)
Column D is a special column that says labeled "prior to 2013" and every cell has a 1 in it.
Column E to BD have the days of the worship service (every seven days) in row 1. Then I place a one in the intersection of the song title and then date.

The formula I'm using in column C is =INDEX($1:$1,MATCH(1,3:3)) [this is the formula for row 3.] My hope was this would find the last item in that row with a 1, then return the date (in row 1 at the top).

The data looks like this
songs, totals, last used, prior to 2013, 1/5/2013, 1/12/2013, 1/19/2013.....
title1, =SUM(E2:BD2), =INDEX($1:$1,MATCH(1,2:2)), 1, 1, , , , 1, ....
title2, =SUM(E3:BD3), =INDEX($1:$1,MATCH(1,3:3)), 1, , , ,1, , , ....
etc

The weirdness it the index/match function works sometimes then quits. It works early in the spreadsheet (like the first 3 months or so). Then it only works if the song is played consecutive weeks, so I have a 1 in consecutive cells. As soon as I have a blank cell, the last used column doesn't update correctly.

I've deleted all the data in cells, so I don't think I've got blanks or other characters in the spreadsheet. Does this function only work for small data sets?

Thanks for any help!

Last edited by BillA : May 3rd 13 at 05:01 PM Reason: typo
  #2   Report Post  
Senior Member
 
Location: Belo Horizonte, Brazil
Posts: 170
Thumbs up I did this for you!

Quote:
Originally Posted by BillA View Post
I think this should be simple, but I'm sure am struggling with it. So hopefully someone here can help.
I have a spreadsheet that I'm trying to track the songs our band plays at church and how often they are used.
Column A is the song title
Column B is the total number of times it's been played (this works)
Column C is the date it was last used (this doesn't work)
Column D is a special column that says labeled "prior to 2013" and every cell has a 1 in it.
Column E to BD have the days of the worship service (every seven days) in row 1. Then I place a one in the intersection of the song title and then date.
The formula I'm using in column C is =INDEX($1:$1,MATCH(1,3:3)) [this is the formula for row 3.] My hope was this would find the last item in that row with a 1, then return the date (in row 1 at the top).
The data looks like this
songs, totals, last used, prior to 2013, 1/5/2013, 1/12/2013, 1/19/2013.....
title1, =SUM(E2:BD2), =INDEX($1:$1,MATCH(1,2:2)), 1, 1, , , , 1, ....
title2, =SUM(E3:BD3), =INDEX($1:$1,MATCH(1,3:3)), 1, , , ,1, , , ....
etc
The weirdness it the index/match function works sometimes then quits. It works early in the spreadsheet (like the first 3 months or so). Then it only works if the song is played consecutive weeks, so I have a 1 in consecutive cells. As soon as I have a blank cell, the last used column doesn't update correctly.
I've deleted all the data in cells, so I don't think I've got blanks or other characters in the spreadsheet. Does this function only work for small data sets?
Thanks for any help!
BillA, Good Morning.

Your explanation was good but itīs complex to imagine whatīs wrong with it.

Please, to easier an answer to you, attach your spreadsheet here.
Remember to ZIP your file before attach it here.

I am sure that your answer will come an a quick way.

------------------------
I did an example about what I understood after your explanation.
Itīs attached
------------------------
Attached Files
File Type: zip 05_05_2013_ExcelBanter_BIllA_Songs_1.0.zip (3.7 KB, 31 views)
__________________
I hope it can help you.

Best regards,
Marcilio Lobão
---------------------------
Belo Horizonte, Brazil

Last edited by Mazzaropi : May 4th 13 at 03:20 PM Reason: Including an example as help
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 153
Default Index and Match

The data looks like this
songs, totals, last used, prior to 2013, 1/5/2013, 1/12/2013,
title1, =SUM(E2:BD2), =INDEX($1:$1,MATCH(1,2:2)), 1, 1, , , , 1, ....
title2, =SUM(E3:BD3), =INDEX($1:$1,MATCH(1,3:3)), 1, , , ,1, , , ....
etc


When I tried this, the INDEX() formula prompted a "circular reference" warning from Excel. This might have something to do with the problem.

Maybe this would work better:
=INDEX($D$1:$BD$1,MATCH(1,D3:BD3))
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 153
Default Index and Match

Maybe this would work better:
=INDEX($D$1:$BD$1,MATCH(1,D3:BD3))


Better yet:
=INDEX($D$1:$BD$1,MATCH(2,D3:BD3))
  #5   Report Post  
Junior Member
 
Posts: 4
Default

Quote:
Originally Posted by Mazzaropi View Post
BillA, Good Morning.

Your explanation was good but itīs complex to imagine whatīs wrong with it.

Please, to easier an answer to you, attach your spreadsheet here.
Remember to ZIP your file before attach it here.

I am sure that your answer will come an a quick way.

------------------------
I did an example about what I understood after your explanation.
Itīs attached
------------------------
Thanks! I've got to study your formula to understand it completely, but it does seem to work. You understood the columns correctly in your example. Thanks again for your effort!


  #6   Report Post  
Junior Member
 
Posts: 4
Default

Quote:
Originally Posted by zvkmpw View Post
The data looks like this
songs, totals, last used, prior to 2013, 1/5/2013, 1/12/2013,
title1, =SUM(E2:BD2), =INDEX($1:$1,MATCH(1,2:2)), 1, 1, , , , 1, ....
title2, =SUM(E3:BD3), =INDEX($1:$1,MATCH(1,3:3)), 1, , , ,1, , , ....
etc


When I tried this, the INDEX() formula prompted a "circular reference" warning from Excel. This might have something to do with the problem.

Maybe this would work better:
=INDEX($D$1:$BD$1,MATCH(1,D3:BD3))
If there's no cell with a one in it in the entire row, you do get a circular reference warning. Which is why I put the column where every row had a 1 in it that was labeled "prior to 2013". It keeps the circular reference away.... Maybe a hack, but it seemed to work.
  #7   Report Post  
Junior Member
 
Posts: 4
Default

Thanks for the help everyone! I truly appreciate it.

What I ended up find that worked was
=INDEX($1:$1,MATCH(9.99999999999999E+307,2:2))

For comparison, I had been trying
=INDEX($1:$1,MATCH(1,2:2))


So for Song A (the first song) which is in row 2 (the titles are in row 1) if I use the above formula, it works. I don't know why searching for a very large number, vs searching for a 1 works.... but it does.

Thanks for the help!
  #8   Report Post  
Senior Member
 
Location: Belo Horizonte, Brazil
Posts: 170
Thumbs up

Quote:
Originally Posted by BillA View Post
Thanks for the help everyone! I truly appreciate it.

What I ended up find that worked was
=INDEX($1:$1,MATCH(9.99999999999999E+307,2:2))

For comparison, I had been trying
=INDEX($1:$1,MATCH(1,2:2))
So for Song A (the first song) which is in row 2 (the titles are in row 1) if I use the above formula, it works. I don't know why searching for a very large number, vs searching for a 1 works.... but it does.
Thanks for the help!
BillA, Good Morning.

I donīt understand why you need use this formula that you mentioned.

My formula works well BUT the formula that zvkmpw suggested is BETTER and EASIER to understand than mine. Itīs brilliant!
YOU can use it easily.
I applied this formula to my example and I sending to you again.

It sounds that your real worksheet have a different layout that I understood.
Please, zip your worksheet and attach it here.
It will be possible to analyse and discover what is the real problem.

Have a nice day.
Attached Files
File Type: zip 08_05_2013_ExcelBanter_BillA_Songs_2.0.zip (4.0 KB, 32 views)
__________________
I hope it can help you.

Best regards,
Marcilio Lobão
---------------------------
Belo Horizonte, Brazil
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
INDEX MATCH Functions in LibreCalc (Excel) - Non unique valuesreturn wrong index result io Excel Worksheet Functions 0 February 23rd 13 09:08 AM
Find Exact Match using INDEX, MATCH DoubleUU Excel Worksheet Functions 3 August 15th 08 02:42 PM
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM


All times are GMT +1. The time now is 08:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Đ2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"