I have a data which looks like below.
ID Date Currency
1 9/29/2015 INR
1 10/28/2015 INR
1 10/29/2015 INR
1 11/8/2015 EUR
1 11/11/2015 EUR
1 11/23/2015 EUR
1 11/24/2015 EUR
1 11/25/2015 INR
1 11/27/2015 EUR
1 12/1/2015 EUR
1 12/2/2015 CEZ
1 12/3/2015 CEZ
1 12/15/2015 CEZ
1 12/18/2015 INR
1 12/29/2015 INR
I want to calculate the difference between the date when the given the currency is same. For example, the first three are of same currency and therefor the difference will be calculated for the date 1 and date 3. Similarly, for rest of the rows I need to calculate. Precisely, the output looks like below.
ID Date Date2 Currency Difference
1 9/29/2015 10/29/2015 INR 30
1 11/8/2015 11/24/2015 EUR 16
1 11/25/2015 11/25/2015 INR 0
1 11/27/2015 12/1/2015 EUR 4
1 12/2/2015 12/15/2015 CEZ 13
1 12/18/2015 12/29/2015 INR 11
I really appreciate if someone helps me to achieve this using excel
Assuming the three columns are placed in column A, B and C and you start in row 1, then you can append two additional columns.
Cell D2, pull formula down:
=IF(C2=C1,D1,B2)
Cell E2, pull formula down:
=IF(C2=C3,"",B2-D2)
Column E now contains the desired result. For convenience, you can place a filter on the table to filter out the empty values in that column.
Related
Dates when the data was read are shown on the date column on the left, then worked out a value per day shown in ET/DAY column.
To analyze monthly data etc etc I want daily data so every day has the ET/DAY value between the dates it was read and inserted in the et/day column.
I have entered in manually what I want in blue but need a formula to do this as too long to do all manually
You can do this with MATCH. With an ascending list, if you give the magic number 1 as the third parameter, it will show the last row number with a smaller or equal number.
Here it's matched 17 with 15 in column A and the result is 2, for row 2:
A
B
C
1
10
=MATCH(17,A:A,1) = 2
2
15
3
20
So for your data, you can match the daily dates with the column on the left, and feed the row number into INDEX to look up from the ET/Day column.
A
B
C
D
E
1
Date
ET/Day
Daily
ET/Day
2
05/Jan/1995
05/Jan/1995
=Index(B:B, Match(#D:D,A:A,1)) = #N/A
3
19/Jan/1995
3.00
06/Jan/1995
=Index(B:B, Match(#D:D,A:A,1)) = 3.00
4
02/Feb/1995
5.41
07/Jan/1995
=Index(B:B, Match(#D:D,A:A,1)) = 3.00
5
...
...
6
19/Jan/1995
=Index(B:B, Match(#D:D,A:A,1)) = 3.00
7
20/Jan/1995
=Index(B:B, Match(#D:D,A:A,1)) = 5.41
There's an inconsistency here with the 05 Jan rate but it should be good after that.
I have two tables, first with currency and value and the second one with currency and x-rate.
by matching currency columns from two tables, I want to multiply and sum the values.
Currency
value
EUR
10
GBP
20
CHF
30
EUR
40
GBP
50
And the second one
Currency
x_rate
EUR
1
GBP
1.2
CHF
1.3
The result should be: 10*1 + 40*1 + 20*1.2 + 50*1.2 + 30*1.3 = 173
Use array formula:
=SUMPRODUCT(B2:B6*TRANSPOSE(E2:E4)*(A2:A6=TRANSPOSE(D2:D4)))
Array formula after editing is confirmed by pressing ctrl + shift + enter
=SUMPRODUCT(($B$2:$B$6)*INDEX($E$2:$E$4,MATCH($A$2:$A$6,$D$2:$D$4,0)))
Where $A$2:$B$6 is the first table and $D$2:$E$4 is the second table.
I'm doing a sales forecast and want to project what a 10% growth would be from month 1 to month 24.
For example if month 1 = 100 and a 10% growth for month 24 = 110.
The spreadsheet is laid out like this:
B C D Y
2 Month 1 Month 2 Month 3 ... Month 24
3 100 110
What function would I use to populate columns C3 though X3? say
Thanks!
I have an Excel table with my banks account like this
A B C E
1 Currency Percent Value Banks Account
2 USD 5 100 8923781
3 Eur 7 200 Ea84382
4 USD 6 900 PayY8908
So I need to calculate how much USD I will earn in current month from all deposits (Value) if we know interest rate's (Percent) for each of bank's acoounts.
For first account the formula will be =C2/100*B2/12 and for second =C4/100*B4/12
The problem that I don't understand how to automatically filter only USD accounts (SUMIF???). And I can't figure out how to do this using only one cell.
You could use SUMIF, if you would use a helper Column:
A B C D E
1 Currency Percent Value Banks Account Monthly earned
2 USD 5 100 8923781 0,416666667
3 Eur 7 200 Ea84382 1,166666667
4 USD 6 900 PayY8908 4,5
Formula in E2:
=C2/100*B2/12
fill down.
Now you could have:
=SUMIF($A$2:$A$10,"USD",$E$2:$E$10)
to sum the USD.
Or, without helper Column, you could use the "swiss army knife" SUMPRODUCT:
=SUMPRODUCT(($A$2:$A$10="USD")*($C$2:$C$10/100*$B$2:$B$10/12))
Greetings
Axel
I've got a table in Excel which is structure like so:
Month Date Time ID Name Currency Value
Jan 07/01/14 5 1234567 Ted GBP 500
Jan 10/01/14 12 1234567 Ted GBP 723
Feb 23/02/14 6 9877654 John GBP 300
Feb 10/02/14 10 1234567 Ted GBP 333
What I need to do is write a formula which basically returns be the total of Value where ID and Month are equal to whatever the lookup values are. For example, using the above I would say:
Find the total of Value where Month equals Jan and ID equals 1234567.
The answer in this case would be 1223.
Ive just tried
=SUMIFS(INPUT!H:H,INPUT!D:D='TRANS BY MID'!B2,INPUT!A:A='TRANS BY MID'!C1)
INPUT!H:H is my ID column
INPUT!D:D='TRANS BY MID'!B2 is the ID I want to use
INPUT!A:A is the Month column
TRANS BY MID'!C1 is Jan
To provide a working solution I simplified your question into one sheet. The data appears like this:
You can link your other sheet to the values shown in column J.
The formula is now this:
=SUMIFS(G:G,D:D,J1,A:A,J2)
The result is shown in J7: