Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default changing values in one column based on values in another?


Hi
Tried a few things here but none seem to work.
I have two columns, one with a price and the second is either a "$" or
"£".
I wish to Convert the price to pounds sterling if the value in the
second column is a "$".

Has anybody got any ideas how to do this and does it need to go on a
button?

Many thanks

Wayne


--
QuickLearner
------------------------------------------------------------------------
QuickLearner's Profile: http://www.excelforum.com/member.php...o&userid=35483
View this thread: http://www.excelforum.com/showthread...hreadid=559837

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default changing values in one column based on values in another?

No buttons.
Say the price is in Column A and the symbol in Column B, all starting in row
1. In some blank column, in row 1, enter this formula:
If(B1="$",A1*XXX,A1)
where XXX is the current conversion factor of dollars to pounds.
Drag this formula down as far as your data in Column A:B goes.
Select all the occupied cells in the above formula column.
Do Edit - Copy.
Select A1.
Do Edit - Paste Special - Values - OK.
Delete all the values in the formula column.
You don't say what you want done with the dollar sign. Assuming that you
want to change all the dollar signs to pound signs, go back to the now blank
formula column above. In row one enter this formula:
If(B1="$","£",B1).
Drag this formula down as before.
Copy all the values.
Select B1.
Do Edit - Paste Special - Values - OK.
Delete all the values in the formula column.
HTH Otto
"QuickLearner"
wrote in message
news:QuickLearner.2aq7ca_1152528853.3014@excelforu m-nospam.com...

Hi
Tried a few things here but none seem to work.
I have two columns, one with a price and the second is either a "$" or
"£".
I wish to Convert the price to pounds sterling if the value in the
second column is a "$".

Has anybody got any ideas how to do this and does it need to go on a
button?

Many thanks

Wayne


--
QuickLearner
------------------------------------------------------------------------
QuickLearner's Profile:
http://www.excelforum.com/member.php...o&userid=35483
View this thread: http://www.excelforum.com/showthread...hreadid=559837



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
Adding multiple values in one column based on multiple values of the same value (text) in another column [email protected] Excel Discussion (Misc queries) 1 May 16th 07 06:02 PM
Adding numerical values based on multiple values in another column Kazmaniac Excel Worksheet Functions 6 April 4th 07 08:53 PM
Get values in a column based on values in two other columns ssb Excel Programming 1 May 31st 06 03:54 AM
Calculating values to column D with formula based on values column A spolk[_2_] Excel Programming 1 April 30th 04 06:29 PM
Create Worksheets Based Upon Changing Column Values in XP Gary[_12_] Excel Programming 1 December 18th 03 12:07 AM


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