Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John Grossman
 
Posts: n/a
Default Can't find logical_test for "if"statement

I have two possible entries in column A:
http://www.amazon.com/exec/obidos/tg.../-/0934419345/
or
http://www.amazon.com/exec/obidos/ASIN/0439784549/

My objective is to place the last set of numbers in a cell in Column B- for
entry one I can use =MID(A2,FIND("detail/-/",A2)+9,10)
and for entry 2 I can use =MID(A4,FIND("ASIN",A4)+5,10) and it works just
fine.

I would like to have a formula that tests to see if "detail/-/" is present
or if "ASIN is present in Column A and then apply the appropriate "MID"
function.
Can't seem to design the appropriate logical_test to get a true or false
return so I can use an "if" statement.

Any suggestions welcomed - John


  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=IF(ISNUMBER(FIND("detail/-/",A2)),your_mid_formula,"")

I used blank as in "", replace that with whatever you want when the
condition is not TRUE

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"John Grossman" wrote in message
...
I have two possible entries in column A:
http://www.amazon.com/exec/obidos/tg.../-/0934419345/
or
http://www.amazon.com/exec/obidos/ASIN/0439784549/

My objective is to place the last set of numbers in a cell in Column B-
for entry one I can use =MID(A2,FIND("detail/-/",A2)+9,10)
and for entry 2 I can use =MID(A4,FIND("ASIN",A4)+5,10) and it works just
fine.

I would like to have a formula that tests to see if "detail/-/" is present
or if "ASIN is present in Column A and then apply the appropriate "MID"
function.
Can't seem to design the appropriate logical_test to get a true or false
return so I can use an "if" statement.

Any suggestions welcomed - John



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
How do I compare data in two worksheets to find matching cells? Gary Excel Discussion (Misc queries) 4 March 2nd 06 09:04 PM
Find all text instances in a sheet and add one number from each row Greg Excel Discussion (Misc queries) 1 January 31st 05 11:45 PM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM
Find & Replace results to display specified chosen fields samuel Excel Discussion (Misc queries) 1 December 28th 04 08:43 AM
VB Find and Replace Bony_Pony Excel Worksheet Functions 10 December 6th 04 05:45 PM


All times are GMT +1. The time now is 08:23 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"