PC Review


Reply
Thread Tools Rate Thread

Conditional Formula Words

 
 
Fab
Guest
Posts: n/a
 
      22nd Apr 2010
Okay here we go.

I need to create a Conditional Formula that

1. Identifies the words i.e. Single Adult or Single Adult + 1 Child and then
returns the number 1 or 2.

This is so I can count the people. With me so far.

Here is the issue

I have 50 Different Family Compliments (Single Adult) to do this on and need
a formula that can handle it.

HELP - I can e-mail the spreadsheet if you need it.
 
Reply With Quote
 
 
 
 
ozgrid.com
Guest
Posts: n/a
 
      22nd Apr 2010
Use a Lookup table
http://www.ozgrid.com/Excel/lookup-table.htm



--
Regards
Dave Hawley
www.ozgrid.com
"Fab" <(E-Mail Removed)> wrote in message
news:E3F2075E-C7B3-49DF-ADE0-(E-Mail Removed)...
> Okay here we go.
>
> I need to create a Conditional Formula that
>
> 1. Identifies the words i.e. Single Adult or Single Adult + 1 Child and
> then
> returns the number 1 or 2.
>
> This is so I can count the people. With me so far.
>
> Here is the issue
>
> I have 50 Different Family Compliments (Single Adult) to do this on and
> need
> a formula that can handle it.
>
> HELP - I can e-mail the spreadsheet if you need it.


 
Reply With Quote
 
Fab
Guest
Posts: n/a
 
      22nd Apr 2010
Okay let me clarify a bit there needs to be 50 arguements in this formula as
there are 50 different types of Family Compliments ranging from:

Single Adult - which would equal 1 through to
Couple + 10 Children - which would equal 12



"ozgrid.com" wrote:

> Use a Lookup table
> http://www.ozgrid.com/Excel/lookup-table.htm
>
>
>
> --
> Regards
> Dave Hawley
> www.ozgrid.com
> "Fab" <(E-Mail Removed)> wrote in message
> news:E3F2075E-C7B3-49DF-ADE0-(E-Mail Removed)...
> > Okay here we go.
> >
> > I need to create a Conditional Formula that
> >
> > 1. Identifies the words i.e. Single Adult or Single Adult + 1 Child and
> > then
> > returns the number 1 or 2.
> >
> > This is so I can count the people. With me so far.
> >
> > Here is the issue
> >
> > I have 50 Different Family Compliments (Single Adult) to do this on and
> > need
> > a formula that can handle it.
> >
> > HELP - I can e-mail the spreadsheet if you need it.

>

 
Reply With Quote
 
Fred Smith
Guest
Posts: n/a
 
      22nd Apr 2010
Personally, I would still use the lookup table. You have to type the 50
entries only once.

However, if for some reason you insist on another solution, it won't be
easy. You can scan for "Adult" and "Couple" pretty easily (using Countif for
example). For "Children", you need to do a Find to determine whether it's in
the cell, then back up one or two characters from that position to determine
the number.

Regards,
Fred

"Fab" <(E-Mail Removed)> wrote in message
news405E59F-5D65-4F64-920D-(E-Mail Removed)...
> Okay let me clarify a bit there needs to be 50 arguements in this formula
> as
> there are 50 different types of Family Compliments ranging from:
>
> Single Adult - which would equal 1 through to
> Couple + 10 Children - which would equal 12
>
>
>
> "ozgrid.com" wrote:
>
>> Use a Lookup table
>> http://www.ozgrid.com/Excel/lookup-table.htm
>>
>>
>>
>> --
>> Regards
>> Dave Hawley
>> www.ozgrid.com
>> "Fab" <(E-Mail Removed)> wrote in message
>> news:E3F2075E-C7B3-49DF-ADE0-(E-Mail Removed)...
>> > Okay here we go.
>> >
>> > I need to create a Conditional Formula that
>> >
>> > 1. Identifies the words i.e. Single Adult or Single Adult + 1 Child and
>> > then
>> > returns the number 1 or 2.
>> >
>> > This is so I can count the people. With me so far.
>> >
>> > Here is the issue
>> >
>> > I have 50 Different Family Compliments (Single Adult) to do this on and
>> > need
>> > a formula that can handle it.
>> >
>> > HELP - I can e-mail the spreadsheet if you need it.

>>


 
Reply With Quote
 
JLatham
Guest
Posts: n/a
 
      22nd Apr 2010
I concur with all the above: use a lookup table. It doesn't have to be on
the same sheet with the data you're working with. Phrases in column A, #
people equivalent in column B.
If you're family 'phrase' is in column X on a sheet, then a formula like:
=VLOOKUP(X2,'Table Sheet Name'!$A$1:$B$50,2,FALSE) will return the people
equivalent values.
No way are you going to nest 50 IF() statements and make any sense of it all
later. And until Excel 2007 you're limited to 7 levels of nesting anyhow.

"Fab" wrote:

> Okay let me clarify a bit there needs to be 50 arguements in this formula as
> there are 50 different types of Family Compliments ranging from:
>
> Single Adult - which would equal 1 through to
> Couple + 10 Children - which would equal 12
>
>
>
> "ozgrid.com" wrote:
>
> > Use a Lookup table
> > http://www.ozgrid.com/Excel/lookup-table.htm
> >
> >
> >
> > --
> > Regards
> > Dave Hawley
> > www.ozgrid.com
> > "Fab" <(E-Mail Removed)> wrote in message
> > news:E3F2075E-C7B3-49DF-ADE0-(E-Mail Removed)...
> > > Okay here we go.
> > >
> > > I need to create a Conditional Formula that
> > >
> > > 1. Identifies the words i.e. Single Adult or Single Adult + 1 Child and
> > > then
> > > returns the number 1 or 2.
> > >
> > > This is so I can count the people. With me so far.
> > >
> > > Here is the issue
> > >
> > > I have 50 Different Family Compliments (Single Adult) to do this on and
> > > need
> > > a formula that can handle it.
> > >
> > > HELP - I can e-mail the spreadsheet if you need it.

> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formula with Words and different columns Misplaced Mainer Microsoft Excel Worksheet Functions 5 21st Aug 2009 04:55 PM
changeing words conditional?? please help laandmc Microsoft Excel Misc 3 27th Aug 2008 01:17 PM
Scrolling words for 3 conditional welcoming words. Frank Situmorang Microsoft Access Form Coding 0 10th Dec 2007 02:02 AM
Conditional formatting by key words =?Utf-8?B?UmljaEc=?= Microsoft Excel Worksheet Functions 4 19th Nov 2007 08:40 PM
conditional formatting on words elaine216@gmail.com Microsoft Excel Misc 11 5th Jun 2006 05:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:56 PM.