Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
fab fab is offline
external usenet poster
 
Posts: 6
Default Conditional Formula Words

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 464
Default Conditional Formula Words

Use a Lookup table
http://www.ozgrid.com/Excel/lookup-table.htm



--
Regards
Dave Hawley
www.ozgrid.com
"Fab" wrote in message
...
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.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
fab fab is offline
external usenet poster
 
Posts: 6
Default Conditional Formula Words

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" wrote in message
...
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.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Conditional Formula Words

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" wrote in message
...
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" wrote in message
...
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.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default Conditional Formula Words

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" wrote in message
...
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
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
Conditional Formula with Words and different columns Misplaced Mainer Excel Worksheet Functions 5 August 21st 09 04:55 PM
Conditional formatting - Numbers and words Mark Andrews Excel Discussion (Misc queries) 1 June 18th 09 06:14 AM
changeing words conditional?? please help laandmc Excel Discussion (Misc queries) 3 August 27th 08 01:17 PM
Conditional formatting by key words RichG Excel Worksheet Functions 4 November 19th 07 08:40 PM
conditional formatting on words [email protected] Excel Discussion (Misc queries) 11 June 5th 06 05:56 PM


All times are GMT +1. The time now is 11:50 AM.

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

About Us

"It's about Microsoft Excel"