Excel Formula

jabbaman

New Member
Joined
Jun 5, 2018
Messages
16
Hi all, I'm new to MrExcel
I'm trying to work out which input to use for this scenario.
In cell A2 i have 4 different win prices i can use
So what i want to be able to do is when i enter a price in A2 it will automatically put the outlay amount in cell B2 and in cell C2 when i enter 1st i want it to automatically enter the amount from cell D2 into E2 , obviously if the result in C2 is either 2nd,3rd or Unplaced it would automatically enter $0.00. I hope someone can help me with this, thanks.
A1 B1 C1 D1 E1 F1 G1 H1 I1 J1 K1 L1
[TABLE="width: 838"]
<colgroup><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Win Price[/TD]
[TD]Outlay[/TD]
[TD]Finished[/TD]
[TD]Win Amount[/TD]
[TD]Won/Lost[/TD]
[TD]Difference[/TD]
[TD]Total Outlay[/TD]
[TD]Profit/Loss[/TD]
[TD] Prices Min [/TD]
[TD] Prices Max [/TD]
[TD]Bet[/TD]
[TD]Position[/TD]
[/TR]
[TR]
[TD]$1.55[/TD]
[TD]$250.00[/TD]
[TD]1st[/TD]
[TD]$387.50[/TD]
[TD]$387.50[/TD]
[TD="align: right"]$137.50[/TD]
[TD="align: right"]$250.00[/TD]
[TD]$137.50[/TD]
[TD]$1.00[/TD]
[TD]$2.00[/TD]
[TD]$250[/TD]
[TD]1st[/TD]
[/TR]
[TR]
[TD]$1.80[/TD]
[TD]$250.00[/TD]
[TD]3rd[/TD]
[TD]$450.00[/TD]
[TD]$0.00[/TD]
[TD="align: right"]-$250.00[/TD]
[TD="align: right"]$500.00[/TD]
[TD]-$112.50[/TD]
[TD]$2.01[/TD]
[TD]$3.00[/TD]
[TD]$200[/TD]
[TD]2nd[/TD]
[/TR]
[TR]
[TD]$2.70[/TD]
[TD]$200.00[/TD]
[TD]1st[/TD]
[TD]$540.00[/TD]
[TD]$540.00[/TD]
[TD="align: right"]$340.00[/TD]
[TD="align: right"]$700.00[/TD]
[TD]$227.50[/TD]
[TD]$3.01[/TD]
[TD]$4.00[/TD]
[TD]$150[/TD]
[TD]3rd[/TD]
[/TR]
[TR]
[TD]$7.00[/TD]
[TD]$100.00[/TD]
[TD]Unplaced[/TD]
[TD]$700.00[/TD]
[TD]$0.00[/TD]
[TD="align: right"]-$100.00[/TD]
[TD="align: right"]$800.00[/TD]
[TD]$127.50[/TD]
[TD]$4.01[/TD]
[TD]$150.00[/TD]
[TD]$100[/TD]
[TD]Unplaced[/TD]
[/TR]
[TR]
[TD]$3.40[/TD]
[TD]$150.00[/TD]
[TD]1st[/TD]
[TD]$510.00[/TD]
[TD]$510.00[/TD]
[TD="align: right"]$360.00[/TD]
[TD="align: right"]$950.00[/TD]
[TD]$487.50[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]$0.00[/TD]
[TD][/TD]
[TD="align: right"]$0.00[/TD]
[TD="align: right"]$950.00[/TD]
[TD]$487.50[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]$0.00[/TD]
[TD][/TD]
[TD="align: right"]$0.00[/TD]
[TD="align: right"]$950.00[/TD]
[TD]$487.50[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
So this in B2 and drag down

Code:
=IF(A2<=2,250,IF(A2<=3,200,IF(A2<=4,150,100)))
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
And just in case A2 is blank

Code:
=IF(A2="","",IF(A2<=2,250,IF(A2<=3,200,IF(A2<=4,150,100))))
 
Upvote 0
Hi Michael,
I have one more formula i need help with, i think it might a IF formula not sure. So A2 has dog names, B2 has trainers name, i also have columns with each trainers dogs, so what i would like to do is once i put the dogs name in A2 it automatically put the trainers name in cell B2. Hope you can help, thanks.

[TABLE="width: 1403"]
<colgroup><col span="2"><col><col><col><col><col><col><col><col><col span="2"></colgroup><tbody>[TR]
[TD]TIPPERARY MEL[/TD]
[TD]Sam Sultana[/TD]
[TD]Ashlee Terry[/TD]
[TD]BIG REPUTATION[/TD]
[TD]Brooke Ennis[/TD]
[TD]BAROOGA BRETT[/TD]
[TD]Kevin Eyles[/TD]
[TD]BIG BARRA[/TD]
[TD]Darren Brown[/TD]
[TD]CHIEF'S EMPIRE[/TD]
[TD]Seona Thompson[/TD]
[TD]ASTON DEE BEE[/TD]
[/TR]
[TR]
[TD]MINI DIVA[/TD]
[TD]Sam Sultana[/TD]
[TD][/TD]
[TD]BRIGHT NEW SHINE[/TD]
[TD][/TD]
[TD]BELLA SHIMA[/TD]
[TD][/TD]
[TD]HEARTBREAK HERMY [/TD]
[TD][/TD]
[TD]CHIEF'S SIDEKICK[/TD]
[TD][/TD]
[TD]ASTON DUKE[/TD]
[/TR]
[TR]
[TD]YODA[/TD]
[TD]Brooke Ennis[/TD]
[TD][/TD]
[TD]BURN LIKE FIRE[/TD]
[TD][/TD]
[TD]BELT UP BUBBS[/TD]
[TD][/TD]
[TD]KRAKEN AYE KAY[/TD]
[TD][/TD]
[TD]MAYOR DIGBY[/TD]
[TD][/TD]
[TD]AZKABAN[/TD]
[/TR]
[TR]
[TD]BAROOGA BRETT[/TD]
[TD]Brooke Ennis[/TD]
[TD][/TD]
[TD]CHARMED AN TAKEN[/TD]
[TD][/TD]
[TD]MIGHTY HAZZA[/TD]
[TD][/TD]
[TD]KRAKEN BAM BAM [/TD]
[TD][/TD]
[TD]MINI DIVA[/TD]
[TD][/TD]
[TD]BECKHAM[/TD]
[/TR]
[TR]
[TD]INVASION[/TD]
[TD]Karen M Walsh[/TD]
[TD][/TD]
[TD]EYE GOT IT[/TD]
[TD][/TD]
[TD]MY MATE LENNY[/TD]
[TD][/TD]
[TD]KRAKEN BOLT[/TD]
[TD][/TD]
[TD]PERCY'S CURSE[/TD]
[TD][/TD]
[TD]BEWILDERING[/TD]
[/TR]
[TR]
[TD]THRILLING ARNOLD[/TD]
[TD]Karen M Walsh[/TD]
[TD][/TD]
[TD]EYES ON YOU[/TD]
[TD][/TD]
[TD]PANDAKEN[/TD]
[TD][/TD]
[TD]KRAKEN GRETA[/TD]
[TD][/TD]
[TD]PERCY'S EMPIRE[/TD]
[TD][/TD]
[TD]DESPACITO[/TD]
[/TR]
[TR]
[TD]RIDIN' SHOTGUN[/TD]
[TD]Karen M Walsh[/TD]
[TD][/TD]
[TD]LEICA CALI KING[/TD]
[TD][/TD]
[TD]ROCKSTAR STRATUS[/TD]
[TD][/TD]
[TD]KRAKEN PACE[/TD]
[TD][/TD]
[TD]YOUR HANGER[/TD]
[TD][/TD]
[TD]DOUBLE QUE[/TD]
[/TR]
[TR]
[TD]HOT PLATTER[/TD]
[TD]Johannes Vanderburg[/TD]
[TD][/TD]
[TD]MY AMERICAN GIRL[/TD]
[TD][/TD]
[TD]STERLING ARCHER[/TD]
[TD][/TD]
[TD]MI ROMA[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]EQUANIMITY[/TD]
[/TR]
[TR]
[TD]DIDDILEE[/TD]
[TD]Johannes Vanderburg[/TD]
[TD][/TD]
[TD]NERVOUS AN WEIRD[/TD]
[TD][/TD]
[TD]TRITT TRITT[/TD]
[TD][/TD]
[TD]WHAT STOPPING YA[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]EXTREME MAGIC[/TD]
[/TR]
[TR]
[TD]KRAKEN PACE[/TD]
[TD]Kevin Eyles[/TD]
[TD][/TD]
[TD]OUTTA MY DEPTH[/TD]
[TD][/TD]
[TD]TRUMPSTA[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]FAB REIKO[/TD]
[/TR]
[TR]
[TD]KRAKEN BOLT[/TD]
[TD]Kevin Eyles[/TD]
[TD][/TD]
[TD]PURE WHITE EVIL[/TD]
[TD][/TD]
[TD]YODA[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]FLYING SPARKLES[/TD]
[/TR]
[TR]
[TD]KRAKEN AYE KAY[/TD]
[TD]Kevin Eyles[/TD]
[TD][/TD]
[TD]QUENA DEE AIR[/TD]
[TD][/TD]
[TD]ZIPPING ANGUS[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]HEMSWORTH[/TD]
[/TR]
[TR]
[TD]KRAKEN BAM BAM[/TD]
[TD]Kevin Eyles[/TD]
[TD][/TD]
[TD]SHAKIN' BRAVE[/TD]
[TD][/TD]
[TD]ZIPPING NANCY[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]OUT OF RANGE[/TD]
[/TR]
[TR]
[TD]HEARTBREAK HERMY[/TD]
[TD]Kevin Eyles[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]POKE THE BEAR[/TD]
[/TR]
[TR]
[TD]PERCY'S EMPIRE[/TD]
[TD]Darren Brown[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]REIKO ROCKETTA[/TD]
[/TR]
[TR]
[TD]CHARMED AN TAKEN[/TD]
[TD]Ashlee Terry[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]STYGIAN[/TD]
[/TR]
[TR]
[TD]TRUE TALENT[/TD]
[TD]Seona Thompson[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]TRUE TALENT[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Do you have a lookup list for trainers / dog names ?
If so, where is it ?
If not, how do we know who trains which dog to start with??
 
Upvote 0
Hi Michael,

no i haven't got a lookup list. All i have is their name in one cell and their dogs in the next cell.
Example:
Kevin Eyles BIG BARRA

HEARTBREAK HERMY
KRAKEN AYE KAY
KRAKEN BAM BAM
KRAKEN BOLT
KRAKEN GRETA
KRAKEN PACE
MI ROMA
WHAT STOPPING YA
 
Upvote 0
OK, is the name of the trainer next to each dog ??
like this


Excel 2007
AB
1Kevin EylesBIG BARRA
2Kevin EylesHEARTBREAK HERMY
3Kevin EylesKRAKEN AYE KAY
4Kevin EylesKRAKEN BAM BAM
5Kevin EylesKRAKEN BOLT
6Kevin EylesKRAKEN GRETA
7Kevin EylesKRAKEN PACE
8Kevin EylesMI ROMA
9Kevin EylesWHAT STOPPING YA
Sheet1
 
Last edited:
Upvote 0
Hi Michael, yes but i only have his name once in A1 then the dogs the way you have it. but i have a few different trainers , so another trainers name in C1 then dogs name D1 etc etc E1, F1 and so on.
 
Upvote 0
with 'em all side by side it's gonna be difficult to write a simple formula.
I would suggest a lookup table, either somewhere on the same worksheet OR on it's own...and then use a VLOOKUP formula
The table should look like this


Excel 2007
DE
1BIG REPUTATIONAshlee Terry
2BRIGHT NEW SHINEAshlee Terry
3BURN LIKE FIREAshlee Terry
4CHARMED AN TAKENAshlee Terry
5EYE GOT ITAshlee Terry
6EYES ON YOUAshlee Terry
7LEICA CALI KINGAshlee Terry
8MY AMERICAN GIRLAshlee Terry
9NERVOUS AN WEIRDAshlee Terry
10OUTTA MY DEPTHAshlee Terry
11PURE WHITE EVILAshlee Terry
12QUENA DEE AIRAshlee Terry
13SHAKIN' BRAVEAshlee Terry
14BAROOGA BRETTBrooke Ennis
15BELLA SHIMABrooke Ennis
16BELT UP BUBBSBrooke Ennis
17MIGHTY HAZZABrooke Ennis
18MY MATE LENNYBrooke Ennis
19PANDAKENBrooke Ennis
20ROCKSTAR STRATUSBrooke Ennis
21STERLING ARCHERBrooke Ennis
22TRITT TRITTBrooke Ennis
23TRUMPSTABrooke Ennis
24YODABrooke Ennis
25ZIPPING ANGUSBrooke Ennis
26ZIPPING NANCYBrooke Ennis
27BIG BARRAKevin Eyles
28HEARTBREAK HERMYKevin Eyles
29KRAKEN AYE KAYKevin Eyles
30KRAKEN BAM BAMKevin Eyles
31KRAKEN BOLTKevin Eyles
32KRAKEN GRETAKevin Eyles
33KRAKEN PACEKevin Eyles
34MI ROMAKevin Eyles
35WHAT STOPPING YAKevin Eyles
Sheet2


Then a VLOOKUP formula like

Code:
=Vlookup(A1,$D$1:$E$35,2,0)

so the formula looks up a value equivalent to A1 in the table of D1:E35, and returns the equivalent value in the 2nd column of that table....does that help / make sense ???
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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