Forum Discussion
billh55
Feb 24, 2022Copper Contributor
how to make a formula apply only when the number is negative
I want to add a number from cells when negative, to another cell already populated with a positive number\This is for monthly target bonus. If one month is negative in column of target achieved, then...
- Jan 22, 2023
=INDEX($J$5:$J$9,MATCH(TRUE,ISNUMBER(SEARCH("*"&$I$5:$I$9&"*",C5)),0))
You can try this formula. Enter the formula with ctrl+shift+enter if you don't work with Office 365 or Excel 2021.
billh55
Feb 24, 2022Copper Contributor
Sorry really new at this.
Can you please explain formula in txt. Really appreciate it.
Can you please explain formula in txt. Really appreciate it.
Wildecoyote1966
Feb 24, 2022Brass Contributor
=if(E12<0,D4-E12,D4)
if Cell E12 is less than 0 then Cell D4 (cell with new month figure you want to add to)-E12 (minus negative figure in E12) otherwise D4
E12 = -6
D4 = 510 (value for new month you want to add to E12)
you would get 510 - -6 = 516
E12 = 6
you'd get 510
if Cell E12 is less than 0 then Cell D4 (cell with new month figure you want to add to)-E12 (minus negative figure in E12) otherwise D4
E12 = -6
D4 = 510 (value for new month you want to add to E12)
you would get 510 - -6 = 516
E12 = 6
you'd get 510
- billh55Feb 24, 2022Copper ContributorThanks heaps.
- Wildecoyote1966Feb 24, 2022Brass Contributor