Need Help for Betting Algorithm (Pretty Simple Question)

Anonymous
2021-12-26T05:16:41+00:00

So my formula for Cash Flow was working great until I decided to add in varying unit sizes. I thought that if I used a vlookup and referenced the units with the table on the right it would work out but the unit sizes don't impact it at all and I am left with the same result I had before adding in the units and vlookup. As you can see at the top, the formula basically states that if there is any text in the result column, then it will give a negative unit for every time there is one. That is then added by the collect value in the table whenever a "Win" value is given in the result column. I'm just looking for any way to have the units be factored in. Any and all responses will be greatly appreciated thanks guys.

Also for reference this was my formula before trying vlookup and calculating units.

=(-COUNTIF(F4:F995,"*")*M10)+O10*COUNTIF(F4:F995,"Win")

Microsoft 365 and Office | Excel | For education | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Andreas Killer 144.1K Reputation points Volunteer Moderator
2021-12-26T06:56:54+00:00

G4: =IF(F4="",0,IFERROR(VLOOKUP(E4,$L$10:$M$13,2,0),0))

drag down

K3: =SUM(G:G)+O10*COUNTIF(F:F,"Win")

Andreas.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2021-12-28T03:26:41+00:00

    Hello, Nicholas

    Have your referred to the reply shared by Andreas?

    If you need any further help, please feel free to post back to us.

    Regards,

    Igor

    Was this answer helpful?

    0 comments No comments