MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Jan 14th, 2002, 12:38 PM   #1
hisdwelling
New Member
 
Join Date: Apr 2002
Posts: 16
Default

Daleyman, you're amazing!!!!

The first 2 formulas work just right!
The 3rd formula works just right... as long as there is text after the price in the original string. If the price is last in the text string, I get a #VALUE! error.

Will the postal service let us send chocolate overseas?

hisdwelling is offline   Reply With Quote
Old Jan 14th, 2002, 12:52 PM   #2
hisdwelling
New Member
 
Join Date: Apr 2002
Posts: 16
Default

Hmmm... my reply above may not be correct. Below are 2 examples. They both have the price last. The 3rd formula worked correctly on one, but not on the other...


String: (this one errors)
65924 Classically styled... blah, blah.... 6 1/4" x 2 1/4" x 1" high. $7.95

Results: $7.95
65924
#VALUE!

String: (this one works)
45617 Kids love to play.... blah, blah. 22" x 7 1/2" x 1 1/2" $9.95

Results: $9.95
45617
Kids love to play.... blah, blah. 22" x 7 1/2" x 1 1/2"
hisdwelling is offline   Reply With Quote
Old Jan 14th, 2002, 01:09 PM   #3
daleyman
Board Regular
 
Join Date: Mar 2002
Location: London, UK
Posts: 167
Default

hmmm, thats curious, just tested these examples and they work for me. Or at least the first two do, the third is missing its price. Please check that you are pluggin in the equations correctly, remember the third refers to both of the other two equations.
__________________

<table style="background-color:#0e54be" cellspacing="1" cellpadding="2"><td style="background-color:#ceffff;font-family:arial;color:#072c63;font-size:8pt;">***DALEY** :P**</td></table>
daleyman is offline   Reply With Quote
Old Jan 14th, 2002, 01:14 PM   #4
hisdwelling
New Member
 
Join Date: Apr 2002
Posts: 16
Default

OK... after playing with my data for a while, I know that the strings where the price is followed by one or more spaces are the strings where the formula works.

So, where the formula returns #VALUE!, I need to go in and add a space after the price.

Thanks for all your help!
hisdwelling is offline   Reply With Quote
Old Jan 14th, 2002, 01:23 PM   #5
daleyman
Board Regular
 
Join Date: Mar 2002
Location: London, UK
Posts: 167
Default

ah, i see the error, sorry.... last equation should read...

=MID(F11,LEN(H11)+2,FIND("$",F11)-LEN(H11)-2) & " " & RIGHT(F11,LEN(F11)-(FIND("$",F11)+LEN(G11)-1))


....if you want to change your existing equation without having to plug it in all over again, i just changed the end from ))) to )-1))

hope this is better.
__________________

<table style="background-color:#0e54be" cellspacing="1" cellpadding="2"><td style="background-color:#ceffff;font-family:arial;color:#072c63;font-size:8pt;">***DALEY** :P**</td></table>
daleyman is offline   Reply With Quote
Old Jan 14th, 2002, 01:31 PM   #6
hisdwelling
New Member
 
Join Date: Apr 2002
Posts: 16
Default

AWESOME!!! Thank you so much. You saved me HOURS & HOURS of editing!
hisdwelling is offline   Reply With Quote
Old Jan 14th, 2002, 03:21 PM   #7
daleyman
Board Regular
 
Join Date: Mar 2002
Location: London, UK
Posts: 167
Default

no problem, glad to be of service.
__________________

<table style="background-color:#0e54be" cellspacing="1" cellpadding="2"><td style="background-color:#ceffff;font-family:arial;color:#072c63;font-size:8pt;">***DALEY** :P**</td></table>
daleyman is offline   Reply With Quote
Old Apr 11th, 2002, 07:57 PM   #8
hisdwelling
New Member
 
Join Date: Apr 2002
Posts: 16
Default

Our supplier gives us a text string (In Word) that includes the item #, the description and the price. We have imported the text strings into an Excel workbook. In order to upload this to our website, I need to remove the item # and price, and place each into a separate cell, in the correct place in another workbook. Is there an easy way to do this? (We are not VSB saavy)

Any ideas will be very much appreciated!

[ This Message was edited by: hisdwelling on 2002-04-11 19:00 ]
hisdwelling is offline   Reply With Quote
Old Apr 11th, 2002, 08:06 PM   #9
anno
Board Regular
 
Join Date: Feb 2002
Posts: 202
Default

have a look at text to columns (data menu). it won't be that useful if the strings you want to separate differ in length though. if you can give a sample string or strings someone should be able to come up with a solution
anno is offline   Reply With Quote
Old Apr 11th, 2002, 09:14 PM   #10
Rocky E
Board Regular
 
Join Date: Feb 2002
Location: North Alabama, USA
Posts: 105
Default

I think you are asking for a parser macro. If the data has consistent character spacing you can brute force it with the MID$() function. If you can describe the data or even give us 10 rows we can help a lot more.

Rocky...
Rocky E is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 04:39 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes