Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
natei6
 
Posts: n/a
Default Formula Help Price Code


Hi all,
I have a list of prices, and I would like to convert them into code.
*BLACK HORSE:* B=1 L=2 and so forth. I only need even dollar amounts,
no cents. Someone gave me this formula, but it is for dollars and
cents, and it makes 0=B instead of 1=B. This is what I am working with
so far. Q is just a dummy letter in front of each code.

="Q"&IF(ISNUMBER(A1),MID($G$1,A1/1000+1,1)&MID($G$1,MOD(A1,1000)/100+1,1)&MID($G$1,MOD(A1,100)/10+1,1)&MID($G$1,MOD(A1,10)+1,1)&MID($G$1,(A1-INT(A1))*10+1,1)&MID($G$1,ROUND((A1*10-INT(A1*10)),0)*10+1,1),"")



Your help would be greatly appreciated.
Thanks again,
Nathan Sargeant


--
natei6
------------------------------------------------------------------------
natei6's Profile: http://www.excelforum.com/member.php...fo&userid=7185
View this thread: http://www.excelforum.com/showthread...hreadid=518949

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kassie
 
Posts: n/a
Default Formula Help Price Code

Hi Nate

Excel is calculating on a 0 - 9 sequence, while you want a 1 - 0 sequence.
The easiest way of solving the problem is to comply, and in stead of using
*BLACKHORSE:*, rather use *:BLACKHORSE*. You will then get the desired
effect.
hth

"natei6" wrote:


Hi all,
I have a list of prices, and I would like to convert them into code.
*BLACK HORSE:* B=1 L=2 and so forth. I only need even dollar amounts,
no cents. Someone gave me this formula, but it is for dollars and
cents, and it makes 0=B instead of 1=B. This is what I am working with
so far. Q is just a dummy letter in front of each code.

="Q"&IF(ISNUMBER(A1),MID($G$1,A1/1000+1,1)&MID($G$1,MOD(A1,1000)/100+1,1)&MID($G$1,MOD(A1,100)/10+1,1)&MID($G$1,MOD(A1,10)+1,1)&MID($G$1,(A1-INT(A1))*10+1,1)&MID($G$1,ROUND((A1*10-INT(A1*10)),0)*10+1,1),"")



Your help would be greatly appreciated.
Thanks again,
Nathan Sargeant


--
natei6
------------------------------------------------------------------------
natei6's Profile: http://www.excelforum.com/member.php...fo&userid=7185
View this thread: http://www.excelforum.com/showthread...hreadid=518949


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
formula for cost as percentage of sale price elisabeth New Users to Excel 2 January 21st 06 05:43 PM
Price Function - Difficulty in understanding the formula abhi_23 Excel Worksheet Functions 0 January 18th 06 09:41 AM
Price function difference in Output formula vis a vis Manual Calculation abhi_23 Excel Worksheet Functions 0 January 17th 06 07:57 AM
Complicated If Then / V Lookup / Match Statement... ryesworld Excel Worksheet Functions 17 December 10th 05 02:09 PM
create a formula for price * discount* tax =final price anton Excel Discussion (Misc queries) 6 October 12th 05 07:51 PM


All times are GMT +1. The time now is 04:03 AM.

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"