Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default I need to find specific a value across a row using IF(AND

I have searched through the archives and threads and thought I found the
solution but to no success.

I want to find "DC Office" across cells AW2:BK2, if one of those cells
contains that text I need it to populate BL2 with "Washington, DC"

Here is the formula I've tried:
=IF(AW2="DC Office","Washington, DC",IF(AND(AX1="DC Office"),"Washington,
DC",IF(AND(AY1="DC Office"),"Washington, DC",IF(AND(AZ1="DC
Office"),"Washington, DC",))

Any help is greatly appreciated. Thank you.
--
Thank you,

scrowley(AT)littleonline.com
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default I need to find specific a value across a row using IF(AND

What should it return if none of the cells contain your criteria? In this
formula it will return blank in that case.

=IF(COUNTIF(AW2:BK2,"DC Office"),"Washington DC","")

HTH,
Paul

--

"SCrowley" wrote in message
...
I have searched through the archives and threads and thought I found the
solution but to no success.

I want to find "DC Office" across cells AW2:BK2, if one of those cells
contains that text I need it to populate BL2 with "Washington, DC"

Here is the formula I've tried:
=IF(AW2="DC Office","Washington, DC",IF(AND(AX1="DC Office"),"Washington,
DC",IF(AND(AY1="DC Office"),"Washington, DC",IF(AND(AZ1="DC
Office"),"Washington, DC",))

Any help is greatly appreciated. Thank you.
--
Thank you,

scrowley(AT)littleonline.com



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default I need to find specific a value across a row using IF(AND

WORKS BEAUTIFULLY! Thank you.
--
Thank you,

scrowley(AT)littleonline.com


"PCLIVE" wrote:

What should it return if none of the cells contain your criteria? In this
formula it will return blank in that case.

=IF(COUNTIF(AW2:BK2,"DC Office"),"Washington DC","")

HTH,
Paul

--

"SCrowley" wrote in message
...
I have searched through the archives and threads and thought I found the
solution but to no success.

I want to find "DC Office" across cells AW2:BK2, if one of those cells
contains that text I need it to populate BL2 with "Washington, DC"

Here is the formula I've tried:
=IF(AW2="DC Office","Washington, DC",IF(AND(AX1="DC Office"),"Washington,
DC",IF(AND(AY1="DC Office"),"Washington, DC",IF(AND(AZ1="DC
Office"),"Washington, DC",))

Any help is greatly appreciated. Thank you.
--
Thank you,

scrowley(AT)littleonline.com




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default I need to find specific a value across a row using IF(AND

Can I look for more than one string?
=IF(COUNTIF(AW2:BK2,"DC Office","Charlotte Office","Dallas
Office"),"Washington DC","Charlotte, NC","Dallas, TX","")


--
Thank you,

scrowley(AT)littleonline.com


"PCLIVE" wrote:

What should it return if none of the cells contain your criteria? In this
formula it will return blank in that case.

=IF(COUNTIF(AW2:BK2,"DC Office"),"Washington DC","")

HTH,
Paul

--

"SCrowley" wrote in message
...
I have searched through the archives and threads and thought I found the
solution but to no success.

I want to find "DC Office" across cells AW2:BK2, if one of those cells
contains that text I need it to populate BL2 with "Washington, DC"

Here is the formula I've tried:
=IF(AW2="DC Office","Washington, DC",IF(AND(AX1="DC Office"),"Washington,
DC",IF(AND(AY1="DC Office"),"Washington, DC",IF(AND(AZ1="DC
Office"),"Washington, DC",))

Any help is greatly appreciated. Thank you.
--
Thank you,

scrowley(AT)littleonline.com




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default I need to find specific a value across a row using IF(AND

Thank you so much. Is it possible to look for more than one string?
=IF(COUNTIF(AW2:BK2,"DC Office","Charlotte Office","Dallas
Office"),"Washington DC","Charlotte, NC","Dallas, TX","")

--
Thank you,

scrowley(AT)littleonline.com


"PCLIVE" wrote:

What should it return if none of the cells contain your criteria? In this
formula it will return blank in that case.

=IF(COUNTIF(AW2:BK2,"DC Office"),"Washington DC","")

HTH,
Paul

--

"SCrowley" wrote in message
...
I have searched through the archives and threads and thought I found the
solution but to no success.

I want to find "DC Office" across cells AW2:BK2, if one of those cells
contains that text I need it to populate BL2 with "Washington, DC"

Here is the formula I've tried:
=IF(AW2="DC Office","Washington, DC",IF(AND(AX1="DC Office"),"Washington,
DC",IF(AND(AY1="DC Office"),"Washington, DC",IF(AND(AZ1="DC
Office"),"Washington, DC",))

Any help is greatly appreciated. Thank you.
--
Thank you,

scrowley(AT)littleonline.com






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default I need to find specific a value across a row using IF(AND

There is probably another way to do it, but you could use a nested IF
statement here.

=IF(COUNTIF(AW2:BK2,"DC Office"),"Washington
DC",IF(COUNTIF(AW2:BK2,"Charlotte Office"),"Charoltte,
NC",IF(COUNTIF(AW2:BK2,"Dallas Office"),"Dallas, TX","")))

HTH,
Paul

--

"SCrowley" wrote in message
...
Thank you so much. Is it possible to look for more than one string?
=IF(COUNTIF(AW2:BK2,"DC Office","Charlotte Office","Dallas
Office"),"Washington DC","Charlotte, NC","Dallas, TX","")

--
Thank you,

scrowley(AT)littleonline.com


"PCLIVE" wrote:

What should it return if none of the cells contain your criteria? In
this
formula it will return blank in that case.

=IF(COUNTIF(AW2:BK2,"DC Office"),"Washington DC","")

HTH,
Paul

--

"SCrowley" wrote in message
...
I have searched through the archives and threads and thought I found the
solution but to no success.

I want to find "DC Office" across cells AW2:BK2, if one of those cells
contains that text I need it to populate BL2 with "Washington, DC"

Here is the formula I've tried:
=IF(AW2="DC Office","Washington, DC",IF(AND(AX1="DC
Office"),"Washington,
DC",IF(AND(AY1="DC Office"),"Washington, DC",IF(AND(AZ1="DC
Office"),"Washington, DC",))

Any help is greatly appreciated. Thank you.
--
Thank you,

scrowley(AT)littleonline.com






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
Find specific value in a string Lost in Microbiology Excel Discussion (Misc queries) 8 May 16th 07 09:58 AM
Find a specific posting Jerry New Users to Excel 16 September 26th 06 01:54 AM
find value in specific row damorrison Excel Discussion (Misc queries) 5 June 3rd 06 09:02 PM
MIN to find specific lowest value Jane Excel Worksheet Functions 5 February 10th 06 02:02 PM
How Do I Find A Specific Worksheet Chris N Excel Discussion (Misc queries) 1 December 27th 04 06:53 PM


All times are GMT +1. The time now is 09:57 PM.

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"