Help with Ifs Formula

rtryan

New Member
Joined
Oct 25, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I am not very good at Excel and need your help with a formula(s). Place formula in Column D, I'm looking to add 1 to Column A if Column C is equal to 3 but not greater than 3 Column A, if the number in Column C is equal to but not greater than 6 then add 2 to Column A, if the number in Column C is equal to but not greater than 9 then add 3 to Column A, if the number in Column C is equal to but not greater than 12 then add 3 to Column A. Finally, in the same formula, if the Column C is equal to and greater than -3, subtract 1 from Column A.
Screenshot 2023-11-01 125729.png
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
if equal to # but not greater than #
means Less Than or Equal to, try this. If not please explain what that phrase means.
Mr Excel Questions 71.xlsm
ABCD
1Pts ReqPts Pull +or-
23136533
39201112
43036632
537471040
61926722
72927-230
Sheet5
Cell Formulas
RangeFormula
D2:D7D2=IF(C2<-3,"",IF(C2<=3,1,IF(C2<=6,2,IF(C2<=12,3,IF(C2>=-3,-1,0))))+A2)
 
Upvote 0
Thank you. However, cells C6 and C7 were negative numbers and the formula didn't return the correct responses in D6 and D7. If the number is equal to or greater than -3 or more (-4, -5, -6, etc), I need it to subtract 1 from Column A (A6 and A7).
 
Last edited by a moderator:
Upvote 0
I'm sorry. I'm not sure if english is your primary language or not. But (-4,-5,-6, etc) are LESS THAN -3.
Here is a number line:
Book1
BCDEFGHIJKLMNO
3Numbers to the left are less than numbers to the right
4______________
5-6-5-4-3-2-101234567
Sheet1



Please answer my question about what you mean by
if equal to # but not greater than #


Look at this:
Mr Excel Questions 71.xlsm
ABCDEFG
1Pts ReqPts Pull +or-Your Matrix of adding to Column A:
23136533
39201112<= -3-1
43036632<= 31
537471040<= 62
61926722<= 123
72927-230>12????
82922-728
92120-122
103731439
rtryan
Cell Formulas
RangeFormula
D2:D10D2=IF(C2<=-3,-1,IF(C2<=3,1,IF(C2<=6,2,IF(C2<12,3,0))))+A2
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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