convert letter to number in a column

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Maybe this in F4 and copy down:

Code:
[COLOR=#0000ff]=SUMPRODUCT((B4:D4-A4>0)*5-(B4:D4-A4<0)*5)[/COLOR]

By the way, I think that the value in F4 must to be 5 and not 15.

Markmzz

there is no code in your answer

If I win the game I get $5 from each player. If I lose the game I pay $5 to the winner

Hi!

There is no code, just a formula. Look better the formula above.

Here is my formula (not code) with your data in the range H4:H122:

ABCDEFGHI
1HEARTS TOTALS
2
3MIKENORTHEASTWESTSHOOT MOONW/LWON/LOSS $Formula
4282778102151385=SUMPRODUCT((B4:D4-A4>0)*5-(B4:D4-A4<0)*5)
544571121041515615
678523784-5-66-5
7461107383101515315
8606610977151510215
9716310422-5-29-5
10526591102151513215
11356831100-5895
12594826101-5-7-5
13438270117101516515
14919359117-5-5-145
155595861031513415
16788310224-5-5-355
17692100361522515
18301073437151511815
19918510286-5-5-5
20801147595-5395
2116410142151523415
31641018192159715
32968254106-5-51-5
334472861101515115
3461583810316-5
3565879511710415
121391231251033026415
122161091121013030415
123
*********************************************************************************************************

<tbody>
</tbody>


Markmzz
 
Last edited:
Upvote 0
If I win the game I get $5 from each player. If I lose the game I pay $5 to the winner

some are correct and some are nor

Which and why?

Markmzz

Hi!

I think that now I see what you want.

So, enter the formula below in H4 and copy down.

=IF(AND(INDEX(A4 < B4:D4,)),COLUMNS(B:D),-1)*5

After that, compare the column H with the wanted values of column E.

Only the value in F4 must to -5 and not 15 (because 28 > 27).


ABCDEFGHI
3MIKENORTHEASTWESTSHOOT MOONW/LWON/LOSS $Formula
428277810215138-5=IF(AND(INDEX(A4 < B4:D4,)),COLUMNS(B:D),-1)*5<b4:d4,)),columns(b:d),-1)*5< font=""></b4:d4,)),columns(b:d),-1)*5<>
544571121041515615
678523784-5-66-5
7461107383101515315
8606610977151510215
9716310422-5-29-5
10526591102151513215
11356831100-589-5
12594826101-5-7-5
13438270117101516515
14919359117-5-5-14-5
155595861031513415
16788310224-5-5-35-5
17692100361522515
18301073437151511815
19918510286-5-5-5
20801147595-539-5
2116410142151523415
31641018192159715
32968254106-5-51-5
334472861101515115
123
*******************************************************************************************************

<tbody>
</tbody>


Markmzz
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,103
Messages
6,123,106
Members
449,096
Latest member
provoking

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