MrExcel Message Board


Go Back   MrExcel Message Board > The Lounge > Lounge v.2.0

Lounge v.2.0 A place to chat.

Reply
 
Thread Tools Display Modes
Old Oct 16th, 2008, 12:58 PM   #1
Randombard
 
Join Date: Jun 2008
Posts: 316
Default Re: June/July 2008 Challenge of the Month

I know that the primary driving aspect of this formula has already been posted,

I have just added to it to make it more versatile.

=IF(ISERROR(LOOKUP(2^15,SEARCH(D$2:D$10,A2),E$2:E$10)),"Not In List",LOOKUP(2^15,SEARCH(D$2:D$10,A2),E$2:E$10))

In no way can I take credit for the clever part of this formula, I just noticed that on those occations that the word in A1 was not in the lookup vector I got #N/A
Randombard is offline   Reply With Quote
Old Dec 13th, 2008, 01:40 AM   #2
crimson_b1ade
 
crimson_b1ade's Avatar
 
Join Date: Sep 2008
Location: Yonkers, New York
Posts: 1,071
Default Re: June/July 2008 Challenge of the Month

Challenge of the...Month?!? Last challenge was June/July 2008, and the previous challenge before that was March/April 2007. At that rate..."Challenge of the Year" would be a more fitting description.
__________________
Nature made woman. Woman made man. Man made God.
crimson_b1ade is online now   Reply With Quote
Old Dec 13th, 2008, 04:08 AM   #3
mgirvin
 
Join Date: Dec 2005
Location: Seattle, WA
Posts: 299
Default Re: June/July 2008 Challenge of the Month

I agree: change it to challenge of the year if it remains as is, or do us all a favor and change it back to challenge of the month!
__________________
Sincerely, Mike Gel Girvin
mgirvin is offline   Reply With Quote
Old Mar 14th, 2009, 03:03 PM   #4
Malix
 
Join Date: Mar 2009
Posts: 2
Default Re: ***WINNERS ANNOUNCEMENT*** June/July 2008 Challenge of the Month

Follwing is my solution towards previous chellange. I am new at forum and need inspitaion from all of you.

=TRIM(IF(ISNUMBER(FIND("blue",A2))=TRUE,"Joe","")&IF(ISNUMBER(FIND("red",A2))=TRUE,"Bob","")&IF(ISNUMBER(FIND("yellow",A2))=TRUE,"Mary","")&IF(ISNUMBER(FIND("pink",A2))=TRUE,"Fred","")&IF(ISNUMBER(FIND("orange",A2))=TRUE,"Ralph","")&IF(ISNUMBER(FIND("brown",A2))=TRUE,"Lora","")&IF(ISNUMBER(FIND("white",A2))=TRUE,"Tracy","")&IF(ISNUMBER(FIND("lavendar",A2))=TRUE,"Earl","")&IF(ISNUMBER(FIND("magenta",A2))=TRUE,"Jenny",""))

Regards
Arshad
Malix is offline   Reply With Quote
Old May 8th, 2009, 08:33 AM   #5
Hooseria
 
Join Date: May 2009
Location: South Africa
Posts: 18
Default Re: ***WINNERS ANNOUNCEMENT*** June/July 2008 Challenge of the Month

Hi, Just bought Book, by Jelen and Systad, discovered your Website (Wow!!) anyway I know this challenge is old. Don't understand why a VLookup doesn't work, heres a user adaptable version of my Lookup and an explanation of why I used each formula...... Would like to hear some comments about it.

Look forward to the next challenge.

={VLOOKUP((OFFSET($E$3,MATCH(TRUE,ISNUMBER(SEARCH(Keyword,B3)),0)-1,0)),Table,2,FALSE)}

1.) Enter new enteries within borders
2.) Copy Formula's down in column C to adjacent new entries in Column B
A.) Firstly I needed to extract the colours from the Phrases, then use vlookup to look it up in the adjacent table
B.) Two named ranges, 1 for extracting the colour, and second for the vlookup.

Keyword is the named range for the colours and and Table for the lookup table Column ("Keyword and Assigned to")

....How do you attach a file to a post??

Last edited by Hooseria; May 8th, 2009 at 08:36 AM.
Hooseria is offline   Reply With Quote
Old May 8th, 2009, 10:44 AM   #6
Domski
 
Domski's Avatar
 
Join Date: Jan 2005
Location: Leeds, UK
Posts: 5,203
Default Re: ***WINNERS ANNOUNCEMENT*** June/July 2008 Challenge of the Month

Hi & welcome,

Quote:
....How do you attach a file to a post??
You can't I'm afraid. Only way is to pop it on a hosting site and post the link.

Dom
__________________
"May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."


- Guidelines For Posting

- Mr Excel Articles and PodCasts

- Display sheet using HTML Maker or Excel Jeanie

- Something that makes me laugh
Domski is offline   Reply With Quote
Old May 8th, 2009, 10:54 AM   #7
Hooseria
 
Join Date: May 2009
Location: South Africa
Posts: 18
Default Re: ***WINNERS ANNOUNCEMENT*** June/July 2008 Challenge of the Month

Domski

Thanks, Could you reccomend a hosting site, I'm eager to get a response on my answer to the latest challenge. Will stick it in the Hosting site. Would be great for future threads as well.

Cheers
Hooseria is offline   Reply With Quote
Old May 8th, 2009, 11:46 AM   #8
Domski
 
Domski's Avatar
 
Join Date: Jan 2005
Location: Leeds, UK
Posts: 5,203
Default Re: ***WINNERS ANNOUNCEMENT*** June/July 2008 Challenge of the Month

I don't use them myself but you could try www.box.net which I know a few folk use.
__________________
"May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."


- Guidelines For Posting

- Mr Excel Articles and PodCasts

- Display sheet using HTML Maker or Excel Jeanie

- Something that makes me laugh
Domski is offline   Reply With Quote
Old May 8th, 2009, 12:12 PM   #9
Hooseria
 
Join Date: May 2009
Location: South Africa
Posts: 18
Default Re: ***WINNERS ANNOUNCEMENT*** June/July 2008 Challenge of the Month

Domski

Thanks, Great site, Here's the attachment of my Answer to June Challenge Using a Vlookup of the Extracted Colour based on the Adjacent Table.

http://www.box.net/shared/rqcsgla6rf

Last edited by Hooseria; May 8th, 2009 at 12:19 PM.
Hooseria is offline   Reply With Quote
Old May 28th, 2009, 03:13 PM   #10
Nilotna
 
Join Date: May 2009
Posts: 5
Default Re: ***WINNERS ANNOUNCEMENT*** June/July 2008 Challenge of the Month

I now, it's too long but I'm starting
You can call this procedure from the WorkSheet_Activate and Worksheet_SelectionChange
*****************************
Public Sub Colorear()
Dim WB As Workbook
Dim Sh As Object
Dim RngColores As Range
Dim RngColor As Range
Dim RngFrases As Range
Dim RngCelda As Range
Dim rngAsignacion As Range
Dim DoFilaFrase As Double
Dim DoFilaColor As Double
Dim DoFinalRow As Double
Dim StPalabra As String
Dim StFrase As String
Dim InContador As Integer
Dim InCaracter As Integer
Dim InLongitud As Integer
Dim Asci As Integer
Set WB = ThisWorkbook
Set Sh = WB.Sheets("Sheet1")
'Determina el rango de Frases
DoFinalRow = Sh.Cells(Sh.Rows.Count, 1).End(xlUp).Row
Set RngFrases = Range(Sh.Cells(2, 1), Sh.Cells(DoFinalRow, 1))
Set rngAsignacion = Range(Sh.Cells(2, 2), Sh.Cells(DoFinalRow, 2))
rngAsignacion.Clear
'Determina el rango de Colores
DoFinalRow = Sh.Cells(Sh.Rows.Count, 4).End(xlUp).Row
Set RngColores = Sh.Range(Sh.Cells(2, 4), Sh.Cells(DoFinalRow, 4))
'Para cada frase
For Each RngCelda In RngFrases
DoFilaFrase = RngCelda.Row 'Anota la fila de la frase
StFrase = StreenCleaner(RngCelda.Value)
'Busca un espacio
InLongitud = Len(StFrase)
For InContador = 1 To InLongitud + 1
StCaracter = Mid(StFrase, InContador, 1)
If StCaracter = " " Or InContador > InLongitud Then
'Busca un nombre de color
Set RngColor = RngColores.Find(What:=StPalabra, LookIn:=xlValues, lookat:= _
xlWhole, searchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False)
If Not RngColor Is Nothing Then 'Es un color
DoFilaColor = RngColor.Row 'Anota la fila del color
'Escribe en la fila de la frase la segunda columna del color
rngAsignacion(DoFilaFrase - 1, 1) = RngColores(DoFilaColor - 1, 2)
Else
StPalabra = ""
End If 'No es un color
Else
StPalabra = StPalabra & StCaracter
End If
Next InContador
StPalabra = ""
Next RngCelda
End Sub

Public Function StreenCleaner(Cadena As String)
Dim Contador As Integer
Dim Caracter As String
Dim CadenaLimpia As String
Dim Prueba As Integer
For Contador = 1 To Len(Cadena)
Caracter = Mid(Cadena, Contador, 1)
On Error GoTo ErrXEsp
If Asc(Caracter) > 128 Then Caracter = " "
Prueba = Asc(Caracter)
On Error GoTo 0
CadenaLimpia = CadenaLimpia & Caracter
Next
StreenCleaner = Trim(CadenaLimpia)
Exit Function
ErrXEsp:
Caracter = " "
Resume Next
End Function
Nilotna is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 11:12 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.