IF THEN across multiple pages, for multiple values

mleunga

New Member
Joined
Apr 10, 2018
Messages
3
Hello,

I am having trouble writing a formula for the following:

I have values in cells D2:D5 in Sheet 2. If the number is >99 in each cell, then I would like a value of 1 to be assigned. If it is <99, I would like the value to be 0. I would like to count these individually (i.e. line by line) to come up with a total value in cell C4 in Sheet 1. As I show using the example below, the value in cell C4 in Sheet 1 should be 2 as only 2 values meet the IF THEN criteria. Subsequently, if the value changes in cell D4 in Sheet 2 to 100, cell C4 in Sheet 1 would automatically update to be 3.

Sheet 2:
D2=100 --> value=1 (>99)
D3=100 --> value=1 (>99)
D4=50 --> value=0 (<99)
D5=20 --> value=0 (<99)

Sheet 1:
C4=2

I've been trying to figure this out using IF THEN statements and I can't seem to get it to work the way I want it :(

Thanks.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi,

If I understand correctly, you don't need IF THEN, just COUNTIF would do:


Excel 2010
D
2100
3100
450
520
Sheet2



Excel 2010
C
42
Sheet1
Cell Formulas
RangeFormula
C4=COUNTIF(Sheet2!D2:D5,">99")
 
Upvote 0
You're welcome, welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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