Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 170
Default Only first of multiple If's returns results

Excel 2007 on WinXP

I need to evaluate the contents of Column F.
If the cell contaions the word "Lead", place Lead in column G
If the cell contains the word "Manager". place Manager in column G
If the cell contains the word "Supervisor", place Super in column G

I used the formula below.
=IF(FIND("Lead", F3)0, "Lead", IF(FIND("Manager", F3)0, "manager",
IF(FIND("Supervisor", F3)0, "Super", "standard")))

Only those rows that contain "Lead: somewhere in in column F record Lead in
column G, all others report VALUE#. Can someone point me toward my error. It
is important for you to know that cells in column F wil have more than just
the word Lead, Manager or Supervisor; these words may be at beginning, in
middle or at the end. They will always be separate words.

Thanks for any suggestions
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Only first of multiple If's returns results

Find is case sensitive. That could be causing you a problem. Have you tried
Search which is virtually identical but is not case sensitive?
--
HTH...

Jim Thomlinson


"JR Hester" wrote:

Excel 2007 on WinXP

I need to evaluate the contents of Column F.
If the cell contaions the word "Lead", place Lead in column G
If the cell contains the word "Manager". place Manager in column G
If the cell contains the word "Supervisor", place Super in column G

I used the formula below.
=IF(FIND("Lead", F3)0, "Lead", IF(FIND("Manager", F3)0, "manager",
IF(FIND("Supervisor", F3)0, "Super", "standard")))

Only those rows that contain "Lead: somewhere in in column F record Lead in
column G, all others report VALUE#. Can someone point me toward my error. It
is important for you to know that cells in column F wil have more than just
the word Lead, Manager or Supervisor; these words may be at beginning, in
middle or at the end. They will always be separate words.

Thanks for any suggestions

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Only first of multiple If's returns results

One way...

=IF(COUNTIF(F3,"*lead*"),"Lead",IF(COUNTIF(F3,"*ma nager*"),"Manager",IF(COUNTIF(F3,"*supervisor*")," Super","Standard")))

--
Biff
Microsoft Excel MVP


"JR Hester" wrote in message
...
Excel 2007 on WinXP

I need to evaluate the contents of Column F.
If the cell contaions the word "Lead", place Lead in column G
If the cell contains the word "Manager". place Manager in column G
If the cell contains the word "Supervisor", place Super in column G

I used the formula below.
=IF(FIND("Lead", F3)0, "Lead", IF(FIND("Manager", F3)0, "manager",
IF(FIND("Supervisor", F3)0, "Super", "standard")))

Only those rows that contain "Lead: somewhere in in column F record Lead
in
column G, all others report VALUE#. Can someone point me toward my error.
It
is important for you to know that cells in column F wil have more than
just
the word Lead, Manager or Supervisor; these words may be at beginning, in
middle or at the end. They will always be separate words.

Thanks for any suggestions



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 170
Default Only first of multiple If's returns results

Thanks to both of you,

That appears to be a very interesting use of COUNTIF, I would never have
thought of using that as opposed to FIND. Thanks again for the solution; it
saved teh day for me.

"T. Valko" wrote:

One way...

=IF(COUNTIF(F3,"*lead*"),"Lead",IF(COUNTIF(F3,"*ma nager*"),"Manager",IF(COUNTIF(F3,"*supervisor*")," Super","Standard")))

--
Biff
Microsoft Excel MVP


"JR Hester" wrote in message
...
Excel 2007 on WinXP

I need to evaluate the contents of Column F.
If the cell contaions the word "Lead", place Lead in column G
If the cell contains the word "Manager". place Manager in column G
If the cell contains the word "Supervisor", place Super in column G

I used the formula below.
=IF(FIND("Lead", F3)0, "Lead", IF(FIND("Manager", F3)0, "manager",
IF(FIND("Supervisor", F3)0, "Super", "standard")))

Only those rows that contain "Lead: somewhere in in column F record Lead
in
column G, all others report VALUE#. Can someone point me toward my error.
It
is important for you to know that cells in column F wil have more than
just
the word Lead, Manager or Supervisor; these words may be at beginning, in
middle or at the end. They will always be separate words.

Thanks for any suggestions



.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Only first of multiple If's returns results

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"JR Hester" wrote in message
...
Thanks to both of you,

That appears to be a very interesting use of COUNTIF, I would never have
thought of using that as opposed to FIND. Thanks again for the solution;
it
saved teh day for me.

"T. Valko" wrote:

One way...

=IF(COUNTIF(F3,"*lead*"),"Lead",IF(COUNTIF(F3,"*ma nager*"),"Manager",IF(COUNTIF(F3,"*supervisor*")," Super","Standard")))

--
Biff
Microsoft Excel MVP


"JR Hester" wrote in message
...
Excel 2007 on WinXP

I need to evaluate the contents of Column F.
If the cell contaions the word "Lead", place Lead in column G
If the cell contains the word "Manager". place Manager in column G
If the cell contains the word "Supervisor", place Super in column G

I used the formula below.
=IF(FIND("Lead", F3)0, "Lead", IF(FIND("Manager", F3)0, "manager",
IF(FIND("Supervisor", F3)0, "Super", "standard")))

Only those rows that contain "Lead: somewhere in in column F record
Lead
in
column G, all others report VALUE#. Can someone point me toward my
error.
It
is important for you to know that cells in column F wil have more than
just
the word Lead, Manager or Supervisor; these words may be at beginning,
in
middle or at the end. They will always be separate words.

Thanks for any suggestions



.



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
4 if's, with 4 different results Steve Excel Worksheet Functions 4 December 12th 08 07:43 PM
Multiple IF's to Select a Value JerryS Excel Worksheet Functions 6 May 9th 07 12:53 AM
Multiple If's and OR's Shelly Excel Worksheet Functions 16 February 19th 07 11:44 PM
multiple IF's ? foilprint0 Excel Worksheet Functions 1 January 31st 06 04:59 PM
Formula with multiple IF'S Kim46770 Excel Discussion (Misc queries) 2 May 17th 05 10:31 PM


All times are GMT +1. The time now is 01:02 AM.

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"