Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Hi! I need some help with my table, the problem is this.... Date---------Basket1 Basket2 Basket3 Basket4 Basket5 01-01-2006-----12-----5-------28--------44--------50 02-01-2006-----1------4-------32--------44--------6 03-01-2006-----12-----2-------45--------34--------49 04-01-2006-----22-----8-------19--------32--------1 I want to create a code that shows if anyday there was the same products buyed, exemple: If i write 12,5,28,44,50 the code should answer Yes, in 01-01-2006 or given this litle table, if i write 1,5,32,44,6 the code should anwser No. The code should only analyse row by row (By Date) and it could be able to answer if i write more that five products, exemple, if i write products 22,18,19,32,1,4,44,6, it should answer Yes 02-01-2006 and in 04-01-2006. Because the combination of this products result in two diferent buys! The other problem is this, imagine that the every mumber written is an product , now i want a code that show me how long a product ins't buyed, exemple, if i write Product Number: 12, the code should answer: Product 12 was last buyed 03-01-2006, 1 times since the last operational day (04-01-2006) Thank you very much if someone could help me... -- l.o.c.o.s ------------------------------------------------------------------------ l.o.c.o.s's Profile: http://www.excelforum.com/member.php...o&userid=31182 View this thread: http://www.excelforum.com/showthread...hreadid=508491 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Assumptions:
A1:F1 contains the headers/labels A2:A5 contains the data B2:F5 contains the data Formulas: For a list of days, let H2:H9 contain the products of interest, then try... I2, copied down: =INDEX(A$2:A$5,SMALL(IF(MMULT(--ISNUMBER(MATCH(B$2:F$5,H$2:H$9,0)),TRANSP OSE(COLUMN(B$2:F$5)^0))=5,ROW(B$2:F$5)-ROW(B$2)+1),ROWS(I$2:I2))) ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER. A couple of points... 1) For H2:H9 that contains a list of products, a dynamic range can be defined. This way the range will automatically expand and contract as data is entered or deleted. 2) As you copy the formula down the column you'll get #NUM! when no more records satisfy the criteria. For this you can either hide them by using conditional formatting or modify the formula to leave the cell empty. If you want the latter, a defined named would be used to make the formula less cumbersome and more efficient. [If you need help with either of these two items, post back.] For the last day a product was bought, let J2 contain the product of interest, then try... =INDEX(A2:A5,MATCH(2,1/(MMULT(--(B2:F5=J2),TRANSPOSE(COLUMN(B2:F5)^0))0) )) ....confirmed with CONTROL+SHIFT+ENTER. For the last operational day, try... =LOOKUP(9.99999999999999E+307,A2:A5) Hope this helps! In article , l.o.c.o.s wrote: Hi! I need some help with my table, the problem is this.... Date---------Basket1 Basket2 Basket3 Basket4 Basket5 01-01-2006-----12-----5-------28--------44--------50 02-01-2006-----1------4-------32--------44--------6 03-01-2006-----12-----2-------45--------34--------49 04-01-2006-----22-----8-------19--------32--------1 I want to create a code that shows if anyday there was the same products buyed, exemple: If i write 12,5,28,44,50 the code should answer Yes, in 01-01-2006 or given this litle table, if i write 1,5,32,44,6 the code should anwser No. The code should only analyse row by row (By Date) and it could be able to answer if i write more that five products, exemple, if i write products 22,18,19,32,1,4,44,6, it should answer Yes 02-01-2006 and in 04-01-2006. Because the combination of this products result in two diferent buys! The other problem is this, imagine that the every mumber written is an product , now i want a code that show me how long a product ins't buyed, exemple, if i write Product Number: 12, the code should answer: Product 12 was last buyed 03-01-2006, 1 times since the last operational day (04-01-2006) Thank you very much if someone could help me... |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Thanks for your help, but i can't put the functions to work!!! I take a screenshot of my excel worksheet...Please help me! Can you help me ? Also i'm interested in you help with the other two items that you mention, dynamic range and conditional formatting! Thanks 4318 +-------------------------------------------------------------------+ |Filename: Worksheet.jpg | |Download: http://www.excelforum.com/attachment.php?postid=4318 | +-------------------------------------------------------------------+ -- l.o.c.o.s ------------------------------------------------------------------------ l.o.c.o.s's Profile: http://www.excelforum.com/member.php...o&userid=31182 View this thread: http://www.excelforum.com/showthread...hreadid=508491 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Hi, thank you for helping me…. The Excel version is the Portuguese version, but it recognizes the same functions in other languages, of course it gives the errors in Portuguese. The function IF is SE in Portuguese. I write all the functions in English and it works well. The error it says is #NOME? that is equal to #NAME? in English. If you could send me the sample file it would be great. Thanks ![]() Note: I already send this same post to your email. -- l.o.c.o.s ------------------------------------------------------------------------ l.o.c.o.s's Profile: http://www.excelforum.com/member.php...o&userid=31182 View this thread: http://www.excelforum.com/showthread...hreadid=508491 |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I've emailed you a sample file...
In article , l.o.c.o.s wrote: Hi, thank you for helping me…. The Excel version is the Portuguese version, but it recognizes the same functions in other languages, of course it gives the errors in Portuguese. The function IF is SE in Portuguese. I write all the functions in English and it works well. The error it says is #NOME? that is equal to #NAME? in English. If you could send me the sample file it would be great. Thanks ![]() Note: I already send this same post to your email. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLOOKUP help needed! | Excel Worksheet Functions | |||
IF / Else Format help needed | Excel Worksheet Functions | |||
solver related some financial knowledge may be needed | Excel Discussion (Misc queries) | |||
formula results take up to 2 lines if needed, but keep border | Excel Worksheet Functions | |||
Custom percent format needed | Excel Worksheet Functions |