#1   Report Post  
Cathy Landry
 
Posts: n/a
Default IF Statement??

Hello,

I have a drop down list of names/addresses. Within this list is a center
number preceded by a "#". I'd to be able to pull the actual center# i.e.
3325 to populate into my cost center cell.

25TH STREET Center# 3325 (old 0325)
920 East 25th St
Baltimore MD 21218

Is this possible?

Thank you!
Cathy
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Hi Cathy,

Is this okay?

=MID(A20,FIND("# ",A20)+2,FIND(" ",A20,FIND("# ",A20)+2)-FIND("# ",A20)-2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Cathy Landry" wrote in message
...
Hello,

I have a drop down list of names/addresses. Within this list is a center
number preceded by a "#". I'd to be able to pull the actual center# i.e.
3325 to populate into my cost center cell.

25TH STREET Center# 3325 (old 0325)
920 East 25th St
Baltimore MD 21218

Is this possible?

Thank you!
Cathy



  #3   Report Post  
Cathy Landry
 
Posts: n/a
Default

Hi Bob,

Yes, that worked great! I was also asked if I could only populate the
center# when another cell was not null.

Address cell is: J6
Descr cell is: F18 - cell K18 should only show a value when this cell is
filled in
Center# is: K18

Could I use the ISBLANK function with the MID function to do this?

Thank you very much for your help!
Cathy




"Bob Phillips" wrote:

Hi Cathy,

Is this okay?

=MID(A20,FIND("# ",A20)+2,FIND(" ",A20,FIND("# ",A20)+2)-FIND("# ",A20)-2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Cathy Landry" wrote in message
...
Hello,

I have a drop down list of names/addresses. Within this list is a center
number preceded by a "#". I'd to be able to pull the actual center# i.e.
3325 to populate into my cost center cell.

25TH STREET Center# 3325 (old 0325)
920 East 25th St
Baltimore MD 21218

Is this possible?

Thank you!
Cathy




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Yes,

=IF(ISBLANK(F18),"",MID(A20,FIND("# ",A20)+2,FIND(" ",A20,FIND("#
",A20)+2)-FIND("# ",A20)-2))

or maybe

=(IF(F18="","",MID(A20,FIND("# ",A20)+2,FIND(" ",A20,FIND("#
",A20)+2)-FIND("# ",A20)-2))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Cathy Landry" wrote in message
...
Hi Bob,

Yes, that worked great! I was also asked if I could only populate the
center# when another cell was not null.

Address cell is: J6
Descr cell is: F18 - cell K18 should only show a value when this cell is
filled in
Center# is: K18

Could I use the ISBLANK function with the MID function to do this?

Thank you very much for your help!
Cathy




"Bob Phillips" wrote:

Hi Cathy,

Is this okay?

=MID(A20,FIND("# ",A20)+2,FIND(" ",A20,FIND("# ",A20)+2)-FIND("#

",A20)-2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Cathy Landry" wrote in message
...
Hello,

I have a drop down list of names/addresses. Within this list is a

center
number preceded by a "#". I'd to be able to pull the actual center#

i.e.
3325 to populate into my cost center cell.

25TH STREET Center# 3325 (old 0325)
920 East 25th St
Baltimore MD 21218

Is this possible?

Thank you!
Cathy






  #5   Report Post  
Cathy Landry
 
Posts: n/a
Default

Hi Bob,

I figured out the answer to my last question to you. This is what I used.

=IF(ISBLANK(F18),"",MID($J$6,FIND("# ",$J$6)+2,FIND(" ",$J$6,FIND("#
",$J$6)+2)-FIND("# ",$J$6)-2))

Thank you again.........it works beautifully!



"Bob Phillips" wrote:

Hi Cathy,

Is this okay?

=MID(A20,FIND("# ",A20)+2,FIND(" ",A20,FIND("# ",A20)+2)-FIND("# ",A20)-2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Cathy Landry" wrote in message
...
Hello,

I have a drop down list of names/addresses. Within this list is a center
number preceded by a "#". I'd to be able to pull the actual center# i.e.
3325 to populate into my cost center cell.

25TH STREET Center# 3325 (old 0325)
920 East 25th St
Baltimore MD 21218

Is this possible?

Thank you!
Cathy






  #6   Report Post  
Ashish Mathur
 
Posts: n/a
Default

Hi,

You may try an array formula (Ctrl+Shift+Enter)

1*MID(A14,MATCH(TRUE,ISNUMBER(1*MID(A14,ROW($1:$19 ),1)),0),COUNT(1*MID(A14,ROW($1:$19),1))+IF(ISNUMB ER(MATCH(".",MID(A14,ROW($1:$19),1),0)),1,0))

This formula assumes that the reference cell is A14

Regards,

Ashish Mathur

"Cathy Landry" wrote:

Hello,

I have a drop down list of names/addresses. Within this list is a center
number preceded by a "#". I'd to be able to pull the actual center# i.e.
3325 to populate into my cost center cell.

25TH STREET Center# 3325 (old 0325)
920 East 25th St
Baltimore MD 21218

Is this possible?

Thank you!
Cathy

  #7   Report Post  
Bob Phillips
 
Posts: n/a
Default

Doesn't work for me.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Ashish Mathur" wrote in message
...
Hi,

You may try an array formula (Ctrl+Shift+Enter)


1*MID(A14,MATCH(TRUE,ISNUMBER(1*MID(A14,ROW($1:$19 ),1)),0),COUNT(1*MID(A14,R
OW($1:$19),1))+IF(ISNUMBER(MATCH(".",MID(A14,ROW($ 1:$19),1),0)),1,0))

This formula assumes that the reference cell is A14

Regards,

Ashish Mathur

"Cathy Landry" wrote:

Hello,

I have a drop down list of names/addresses. Within this list is a

center
number preceded by a "#". I'd to be able to pull the actual center#

i.e.
3325 to populate into my cost center cell.

25TH STREET Center# 3325 (old 0325)
920 East 25th St
Baltimore MD 21218

Is this possible?

Thank you!
Cathy



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
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
IF Statement nightmare eugenevr Excel Discussion (Misc queries) 6 May 18th 05 01:09 PM
How to calculate a sum as one outcome of an IF statement barb in NC Excel Worksheet Functions 2 March 31st 05 08:01 PM
How do I fix a circular reference in a financial statement? drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 05:19 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


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

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"