Complete a formula is a previous statement is true

RobA

New Member
Joined
Jan 27, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I'm a novice at excel and would like a formula to only work if a previous statement is true.

The example is I have a formula for predicted figures for the next year which is worked out from our current monthly figures / 4 * 52 to predict a rough figure of next years.

This is same formula is run on over 100 rows of data from different vendors.

However I plan on putting a cell in each column which will show if the customer is active or inactive and would only like the above formula to work only if the cell is shows "active"

If the cell shows "inactive" the sum won't be ran and won't be included in next year's figure
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
try something like this
--------------------
Book1
ABCD
1Vendorcurrent monthly figuresactive?prediction
2a100active1300
3b100inactive 
Sheet2
Cell Formulas
RangeFormula
D2:D3D2=IF(C2="active",B2/4*52,"")
 
Upvote 0
Thank you, I suppose this would still work if I put the "active" in a different sheet and if there was 12 months figures rather than 1 month?

So if I put =IF('sheet'C2="active",=sum(B2:B13))
 
Upvote 0
So if I put =IF('sheet'C2="active",=sum(B2:B13))
Yes, except that you wouldn't include that "=" in fron of SUM and you would include whatever should be returned if that cell is not "active", just as @ExceLoki did in post 2

1674874644061.png
 
Upvote 1
Solution

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,022
Latest member
RobertV1609

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