1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Formula to subtract value in column D from a value in column G, based on a value in column B.

I would like to subtract a value I have for an amount in column D from a total in column G. The number it is divided by in column G, however, is dependent on what level it's assigned in column B.

I know how to begin this =IF(B2=3,G5-D2) and do it for one value, however, I have 10 levels. Do I have to manually input each level?

https://preview.redd.it/xbpfn0k7imbh1.png?width=649&format=png&auto=webp&s=670e850ed75944df769062cce725d18921453e6d

submitted by /u/zdragonz
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article