correction factor

6foot5

New Member
Joined
Mar 11, 2019
Messages
2
Hello,

I am a more or less a beginner with respect to Excel and need a little help here.
I am a poker player and keep track of my winnings and losses in an Excel Sheet
with diagrams etc.

In essence the important part of the sheet looks something like this:

location
net
total
New York
1200
1200
Berlin
-400
800
Peking
200
1000

<tbody>
</tbody>


The formula so far for 'total' is =SUM($B$3:$B$3) which I
reuse by pressing 'Ctrl-D' in the next field in that column etc.
Easy enough.


Now I want to take currency exchange differences into account and need the 'total' cell
to multiply by a certain factor or, depending on if the location was in the Euro-zone, not.

Let's say I want

a.) New York's total result to be multiplied by 0.8
a.) Berlin's result not to be multiplied at all and
c.) Peking's result to be multiplied by 7.5

How can extend or replace the above formula to accomplish this?

As I said, I am kind of a beginner in Excel and there is probably a much better solution
out there in space. I just write into the first cell the location I played at, in the 'net'
column the result of the night and hit 'Ctrl-D' in the 'total' cell...
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
So many ways to do this. One way is a simple if formula, made not so simple by embedding IF formulas within IF formulas, but it is straight forward. =IF(A1="New York",1,IF(A1="Berlin",0.8,IF(A1="Peking",0.5,1))) If Cell A1 = New York then multiplier is 1 if it's not New York then Use another IF statement to determine if it's not Berlin either then then just use 1. You could also use lookup tables or cell offsets based on formulas. Type =IF into the formula bar to get the prompts for filling in the formula variables. Logical test, value if true, value if false.
 
Upvote 0
Welcome to the Board!

Try:

ABCDEFG
1locationnettotallocationmultiplier
2New York1200960New York0.8
3Berlin-400560Berlin1
4Peking2002060Peking7.5
52060

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
C2=SUMPRODUCT($B$2:$B2,SUMIF($E$2:$E$4,$A$2:$A2,$F$2:$F$4))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Put the formula in C2 and drag down. Make a table of your locations and multipliers in E:F, change all the references to match.
 
Upvote 0
So many ways to do this. One way is a simple if formula, made not so simple by embedding IF formulas within IF formulas, but it is straight forward. =IF(A1="New York",1,IF(A1="Berlin",0.8,IF(A1="Peking",0.5,1))) If Cell A1 = New York then multiplier is 1 if it's not New York then Use another IF statement to determine if it's not Berlin either then then just use 1. You could also use lookup tables or cell offsets based on formulas. Type =IF into the formula bar to get the prompts for filling in the formula variables. Logical test, value if true, value if false.



I'm past that problem and quickly found a solution myself.
Mine looks like similar to this:

=IF(OR(A25="NewYork";A25="LasVegas";A25="AtlanticCity");E25*1.15;IF(OR(A25="Manila");E25/50;E25))

Thanks
 
Upvote 0

Forum statistics

Threads
1,215,561
Messages
6,125,533
Members
449,236
Latest member
Afua

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top