Function To Create Currency Pairs

Jun 22, 2014

I am trying to figure out a function that creates currency pairs, for example EUR/USD etc based on a limitation.

I attach you a workbook with the details. The first step I have accomplished, I am having trouble to the second step as you will see in the sheet.

Test.xlsx

View 8 Replies


ADVERTISEMENT

Create UDF For Currency Conversion With VBA Only - No External Connections

Feb 15, 2013

The main objective is to create a, UDF with 2 parameters (Currency, Date) in order to display currency exchange rate based on the currency and date. Let's say I want to find an exchange rate between USD/ EUR, then I would have a formula something like "=FX(EUR, 12/31/2011)". All currencies will be against USD.

The trick is that it will have to be created as Add-On so that it can be used in any Excel spreadsheets. The second trick is that I cannot have VBA to make any internal connections to other workbooks or applications.

So the only thing that I can come up with would be to write a VBA code that would include all values and currency rates in it. The structure that I have in mind would be something like:

Code:
Function Fx(Vl As String, Dte As Date)
Dim Rte As String
If Vl = "EUR" And Dte = "12/31/2011" Then
Rte = 0.7723
ElseIf Vl = "EUR" And Dte = "12/31/2010" Then
Rte = 0.7546

[code]....

The above code does not work!There will be at least twenty different currencies and at least 15 periods.

View 2 Replies View Related

Spell Number Function With Currency

May 27, 2014

I need to have a spell number function such that if I have a collumns with a figure and abbreviated currency as below

USD 953,681.67
EUR 953,681.67
GBP 953,681.67

The function SpellNumber would display as

US Dollars Nine Hundred and Fifty Three Thousand Six Hundred and Eighty One and Sixty Seven Cents Only

Euros Nine Hundred and Fifty Three Thousand Six Hundred and Eighty One and Sixty Seven Cents Only

Great British Pounds Nine Hundred and Fifty Three Thousand Six Hundred and Eighty One and Sixty Seven Cents Only

Any function that I can append as Macro in Excel and output depends on Currency.I should also be able to edit Macro to add additional currencies as I wish.

View 4 Replies View Related

Excel 2007 :: Automatically Converting All CURRENCY Symbols To ONLY Currency Selected

Mar 11, 2012

How to make EXCEL 2007 Automatically convert all my CURRENCY symbols in all cells formatted for CURRENCY in THE SAME SHEET to the one and ONLY currency selected in JUST ONE cell ? (i mean, after conversion, all of them are Not just display currency symbols, but Calculable monetary values like regular Excel's built-in currency format)

I am a dummy in VBA so I really am not familiar at all if the solution is really one of VBA. I don't even know how to start programming VBA at all in Excel.

View 3 Replies View Related

Currency Additions (show The Total Of Each Currency Separtely)

Apr 23, 2009

I have several rows which lists different currencies - USD, GBP, EURO, JPY etc.,

A1 usd 5000
A2 GBP 7000
A3 USD 3400
A4 EUR 12000
A5 JPY 89000
A6 EUR 1000


At the bottom I want to show the total of each currency separtely.

View 13 Replies View Related

Fill-in As Pairs

Apr 20, 2009

I'm looking for an easy way to fill-in 1600 cells, in Col. "A", with pairs of sequential numbers [from 1 to 800] - for example:

1
1
2
2
3
3
4
4
5
5
6
6

I managed to achieve something close with: =INT(ROW()/2.05)+1 but this is not accurate enough.

View 2 Replies View Related

Matching Pairs Of Data

Dec 30, 2008

I'm not sure if it's possible to do this, but I have three lists of data. One is a complete list (for example, the numbers 1-25).
The next list is a subset of the complete list (e.g., 1,3,5,7,9). Attached to these (the subset list) is another list (let's say letters, so A goes with 1, B goes with 3, etc). I want to physically move the paired entries from Lists 2 & 3 so that List 2 matches up with List

1. Let's see if I can represent this visually:

I have:

1|1|A
2|3|B
3|5|C
4|7|D
5|9|E
6|
7|
8|
...
25|

I want:


1|1|A
2|
3|3|B
4|
5|5|C
6|
7|7|D
8|
...
25|

View 3 Replies View Related

Any Way To Store Pairs Of Data

Jun 9, 2014

I want to store a list of strings in an array with their position so that I can sort them alphabetically and then be able to put them back in their original order again e.g.

John 1
Charlie 2
Paul 3
Andy 4
etc,

So when they are alphabetized (is that a word?) they become

Andy 4
Charlie 2
John 1
Paul 3

My plan was to store them in an array, but I can't think how to do it. In python, I would just make a list of tuples, what is the best way to do this in VBA?

View 7 Replies View Related

Incrementing Pairs Of Data?

Oct 4, 2013

I need to complete what would seem a fairly simple incrementing task but I'm not getting the results that I'm looking for. I don't know much about macros so would prefer not having to use one but I'm willing to try if it's not too complicated.

I'm using Excel 2010 on a PC. For several projects, I need to increment cells that contain text and numbers. The column contains data in a cell (A1), followed by a blank cell (A2), then cell A3 contains new data followed by a blank in A4, etc. What I need to do is 1) copy the exact data in A1 to A2 and then 2) increment the number used in A1/A2 by 1 in A3, copy that into A4, and the pattern repeats down the column.

Here is an example of what I have in column A:
Test_01
[blank cell]
Test_02
[blank cell]
Test_03
[blank cell]
etc.

This is what I want as a result.
Test_01
Test_01
Test_02
Test_02
Test_03
Test_03
etc.

Do I need to save the data in the column as text, general, or numbers? Is there some function that would make incrementing the data possible as I've outlined above?

View 8 Replies View Related

Extract Even/odd Pairs From A Number

Jun 8, 2008

I would like to know if its possible to extract just the even/odd pairs from a number.

Exp. I have the number 123 in cell A1, and would like to extract the even/odd pair, which in this case would be 13, the cell A2. I would like to be able to do this without the use of "Isodd" or "iseven" functions.

View 9 Replies View Related

Show 3digits Under Pairs

Mar 16, 2009

Need formula? We have a pair of numbers in D1,E1,and F1…..
We want only the numbers that have 12 from column A and B

66 from column A and B

18 from column A and B only

A B C D E F
1

12 66 18

456 123
129 667 481

667 234
123 366 881 .........

View 9 Replies View Related

Check For Pairs Occurrences

Jul 19, 2006

I am looking for a code which will check and display the Maximum Occurrences of pairs of 2 Characters.

In the attached file I tried to write some code but it seems to be wrong.

For your convinience, I entered the reuslts in a table (hopefully not mistaken).
The code should display a MsgBox saying that "The pair 'ab' was found 6 times in A1.

The string, in A1, can be any string in any length.

View 9 Replies View Related

Count Pairs In Range

Oct 20, 2007

I am trying to analyse a set of variables in my dataset.

The variables I have are numbers which are organised into a single column.

I want to count the number of times different variable pairings occur within my data.

An example dataset of mine is: 1,2,4,2,1,3,5,3,2,1

As the dataset contains 5 variables (1,2,3,4,5) the potential combinations are: 1,1; 1,2; 1,3; 2,1; etc.. with 25 in total.

I want Excel to move through this column starting with the first two cells and step down 1 cell each time and then tell me the number of times each of the combination occurs.

View 3 Replies View Related

IF Function Which Will Create Y For 1 Or 2

Jan 5, 2013

In column A, I have numbers ranging from 0-6. In column B, I would like to create a "Y" each time there is a 1 or 2 in column A. How can I create an IF function which will create a Y for a 1 or 2?

View 4 Replies View Related

Matching Two Pairs Of Cells Between Two Lists

Sep 13, 2013

I have a long master list of registered members, column C has last name, column D has join date.

Now I have a short list of last names with join dates.

I want to compare the short list with the master list to find names that are already there, by comparing the last name and join date.

View 8 Replies View Related

Counting Pairs From 4 Digit Lottery

Aug 2, 2008

I am tring to list and count how many pairs in a 4 digit lottery?

no duplicates ...

View 13 Replies View Related

Matching And Sorting Non-Identical Row Pairs

Nov 9, 2008

I have a database with 6 columns in play (there are actually other columns but they are not relevant). I'll call the columns A through F. I would like to be able to match certain counterpart rows together, do a sort placing the counterpart rows adjacent to one another, and then count how many pairs I have. (Some rows will have no counterparts.)

Here is a micro-illustration of the database:

______A______B______C______D________E_____F
R1___01-03___54____959____nsneakr___24____yes
R2___01-04___67____454____adidaht____53____yes
R3___01-10___42____344____calb3wd___11____no
R4___01-19___67____454____adidaht____53____no
R5___01-25___54____959____nsneakr___24____yes
R6___02-02___54____959____nsneakr___24____no
R7___02-14___54____959____nsneakr___24____no

I basically need to devise a formula or script that pairs together two rows that fit the following criteria:

1) The rows are identical in Columns B, C, D, and E.
2) The rows are not identical in Column F (i.e., one half of the pair should have "yes" and the other half should have "no")
3) The rows are as close together as possible according to the date sequence in Column A. For example, Row 1 should pair with Row 6, and Row 5 should pair with Row 7. Row 1 should not pair with Row 7, and Row 5 should not pair with Row 6. **This criterion seems tricky because R5 and R6 would technically fit the requirement for pairing, were it not for the fact that R1 comes earlier in the sequence.**

View 2 Replies View Related

Finding The Hypotenuse Of From Two Pairs Of X,Y Coordinates

Feb 4, 2010

I have a map with several waypoints and would like to find the distance between any of these two waypoints. Sounds simple, but I have having an issue with the later parts of the excel file. Let me explain further.

There are over 100 waypoints on this map we have. Each waypoint has an, seemingly arbitrary, X-coordinate and Y-Coordinate. However, if you divide the coordinates by [X], they turn into miles. It should go without saying that finding the distance between two waypoints is rather simple mathematically, but I having an issue figuring out how to pull two random waypoints and having the distance automatically calculated.

So far, I just have column A with the waypoint name and with column B and C having the X and Y coordinates respectively. Is there anyway I can create some sort of call function that when two waypoint values are entered it would automatically calculate the distances?

View 4 Replies View Related

Formula Grouping Number Pairs

Aug 14, 2007

How do I express the following as a formula for range f2:h2:

case 1
if any number is equal to 0 or 5, then 1
if any number is equal to 1 or 6, then 2
if any number is equal to 2 or 7, then 3
if any number is equal to 3 or 8, then 4
if any number is equal to 4 or 9, then 5

example:
f2:h2=3,5,9
result
415

f2:h2=0,2,7
result
133

View 9 Replies View Related

Can Work Out Unique Pairs Of Numbers

Aug 14, 2008

I need to pair up 20 people in sequence for a workshop, so I number the people and can rotate people numbered 1-10 with 11-20 easy enough, but when it gets to pairing 1-10 together in pairs and 11-20 in pairs.

Is there a formula I could use in Excel to work out the easiest pairing for me?

View 9 Replies View Related

Combination Of Pairs, Power And String

Aug 8, 2006

I have a string of n pairs and want to check various combination of that string.
Example: Pairs 58 78 15
Since I know I have 3 pairs (but it can be 2 or 4), I know the number of combination I want to test, ie 2 power 3 = 8 combinations. How can I program a code creating the various strings, ie 587815, 587851, 588715, 588751, 857815, 857851, 858715, 858751 ?

This is what I have so far (not much):

Public unique_pair 'number of pairs provided by another macro
Public mystring 'provided by another macro
Sub make_guess()

Dim number_of_combination, i
number_of_combination = 0


number_of_combination = 2 ^ unique_pair
For k = 1 To number_of_combination

'how to generate the various string ????

Next k
End Sub

View 9 Replies View Related

Using IF Function To Create Scale

Jul 23, 2014

I am trying to create a scale using IF functions in Excel.

I have a row of numbers that I want to convert to my scale. My scale is fairly simple, less than 1 =1 and more than 10 = 1
After that, any number between 1-2 gets a 10, any number between 2-3 gets a 9, any number between 3-4 gets a 8, etc.

So, what I have done is take a logic if-then function and applied it to my row of numbers. It looks something like this:

=IF(2<D2<3,9)

However, this doesn't work. I have a number (2.55), and instead of showing a 9, it says FALSE. I am pretty sure 2.55 falls between 2 and 3 on the scale. Why won't it work?

Also, is there any way to create a function where I could put each of my if/then functions to create my whole scale? Right now I just have 10 separate columns for each number on my scale.

View 1 Replies View Related

How To Correctly Create OR Function

Mar 3, 2014

I should i make this formula

A customer is eligible for a discount if the customer’s 2009 sales are greater than or equal to 200000 OR if the customers First Order was placed in 2012. " If its true it would be yes and if false no"

So far i have in the IF function
=IF([@[2009 sales]]>= 200000 ,"Y","N")

How should i insert if the customers OR First Order was placed in 2012?

View 2 Replies View Related

Create New Worksheet With Function

Jun 20, 2008

Can you have a function create a new worksheet? i know this is possible with a Sub but i haven't been able to do this with a function. Example is below. I'm planning to call the function from an Excel cell (i.e. =CreateNewSheet())

Function CreateNewSheet()
Sheets.Add
End Function

View 8 Replies View Related

Random Pairs Of Numbers For Team Match-ups?

Jun 24, 2014

I have a spreadsheet with 14, or maybe 16, or maybe 40 names in column B.

A1 = 1 B1 = JOE CITIZEN
A2 = 2 B2 = JANE PERSON
...
A17 = 3 B17 = JACK DOE

and so on...

I want to randomly assign these names to pairs using a macro button, and basing it on the number of players (C1)

So if C1 is 12, I'd like the function behind the macro button to come up with 6 * 2 numbers (2 and 11, or 4 and 7,

all completely random, but within the 12 specified in C1) and write these random values in Range D1:E6
(if C1 is 18, then the range to write in would expand to D1:E9).

I don't know enough about writing code to be able to pull this off .

View 2 Replies View Related

Conditional Formatting Based On Sum Of Pairs Of Cells

Nov 14, 2013

I have created a table that has working hours of staff members over many weeks. Week number as column headings (1 to 52) and staff name as Row headings. E.g a row may be

John Smith, 37, 37, 37, 37, 64 (commas to show seperate cells)

How would I go about using conditional formatting so that the formatting changes according to the sum of the values in each pair of cells?

I need to add the total hours of every two weeks for some staff and change the fill colour of both cells accordingly to highlight which weeks staff have worked too many/few hours.

So (B1+C1) would be a pair, the total would decide which fill colour is used on both B1 and C1, and then (D1+E1) would be the next pair and so on.

I have tried using 'a formula to determine which cells to format' and placing =(B1 + C1) = 74 and making it fill the cells green but this appears to be doing (B1+C1) as the first pair and then (C1+D1) as the second and changing the format for the first cell only.

View 7 Replies View Related

Make A Mcaro Loop Through 5 Pairs Of Columns

Jan 26, 2009

I've managed to get my macro to work ok - but what I want to do now is to get it to loop through more columns. Currently it looks for email addresses in column AH (which will always be the same) then it looks for a "yes" in columnAB and if there is no "SENT" in column T then it sends an email,after which it adds the word "SENT" to column T. What I want t do is for the macro to then run on columns AC+U, AD+V, AE+W and AF+X. So basically it will loop through one column to the right each time for a total of 5 pairs of columns

View 2 Replies View Related

Copying Cells To The Neighbouring Column In Pairs Along Row 1

Mar 13, 2009

So I have a spreadsheet that has a Title in Cell A1, then entries in B1, D1, F1, H1, J1, etc... with empty cells between.

What I would like to do is copy those entries to the right, i.e. B1 into C1, D1 into E1, F1 into H1, but all the way along because in my master sheet there are a lot of columns.

View 11 Replies View Related

Finding Count Of Pairs From Lotto Data?

Oct 22, 2011

Is there any way to find pairs of numbers from lotto data ,starting from the highest to the lowest for the full 24 pairs? It does not matter if excel formula or Vb code.T

here small example;

DATARESULT20 27 28 34 43 44PairsCount13 14 18 32 34 4927, 34207 12 27 34 41 465, 47213 24 25 26 37 40 29, 38206 16 22 26 30 3426,37209 15 17 29 30 3915,33104 15 17 26 37 419,22115 19 25 36 44 4510 16 29 34 37 4711 15 32 33 37 3902 03 06 41 44 45 23 28 29 37 38 4205 07 09 10 22 4704 29 31 36 38 4804 17 20 26 29 3605 26 43 46 47 4906 07 29 32 41 46 11 27 46 47 48 4902 03 18 30 34 3503 19 32 40 47 4805 30 31 33 35 45

View 9 Replies View Related

Match Up & Clearly Highlight The Pairs (duplicates) In Each Coloumn

Dec 3, 2008

A:2007 Email Addresses
john@yahoo.com
Sam@hotmail.com
etc
etc
>6000 more email address9000 more email addresses)

I need to match up & clearly highlight the pairs (duplicates) in each coloumn.
What's the trick for this?

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved