Conditional IF + array

stantheman007

New Member
Joined
Feb 1, 2021
Messages
18
Office Version
  1. 365
Platform
  1. MacOS
In the final column I would like an output '1' if some conditions hold, and 0 if they do not all hold. Here is the array formula I am using (starting in row2): {=IF(($A$2:$A$871=A2)*($G$2:$G$871=G2)*($I$2:$I$871=I2)*($K$2:$K$871>=(0.95*K2))*($K$2:$K$871<=(1.05*K2)), "1", "0")}

By this formula, ID 24 should have some 1s inputted, but it does not. This is also the case with other entries that should be 1s, but are outputted as 0s. I do not know why this is the case.

Any help would be greatly appreciated!

Thanks,
Stan

IDTypeRegionBed SizeTransaction DateStandardized Vendor Name - LongStandardized Item Description - LongSum Of QtyStandardized UOMStandardized Conversion FactorPrice PaidTotal Spend%RANKWR
297HospitalWest56Jul-18Cardinal Health Med Prod Hosp Supply/Scientific(2) Cloths per package 7.5î x 7.5î1CS481081081108001
297HospitalWest56Aug-18Cardinal Health Med Prod Hosp Supply/Scientific(2) Cloths per package 7.5î x 7.5î1CS481081081108001
17Health SystemSouth0Jul-18Arthrex Inc#2 FIBERSTICK FIBERWIRE 50IN2BX52505001500000
17Health SystemSouth0Aug-18Arthrex Inc#2 FIBERSTICK FIBERWIRE 50IN1EA150500.525000
24HospitalSouth512Jul-18Arthrex Inc#2 FIBERSTICK FIBERWIRE 50IN10EA1505001500000
24HospitalSouth512Aug-18Arthrex Inc#2 FIBERSTICK FIBERWIRE 50IN2EA1501000.550000
24HospitalSouth512Sep-18Arthrex Inc#2 FIBERSTICK FIBERWIRE 50IN3BX52507501750000
24HospitalSouth512Sep-18Arthrex Inc#2 FIBERSTICK FIBERWIRE 50IN11EA1505501550000
40Health SystemWest538Jul-18Arthrex Inc#2 FIBERSTICK FIBERWIRE 50IN3EA146138000
40Health SystemWest538Aug-18Arthrex Inc#2 FIBERSTICK FIBERWIRE 50IN3EA146138000
 
Last edited:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Maybe
Excel Formula:
=--(COUNTIFS($A$2:$A$871,A2,$G$2:$G$871,G2,$I$2:$I$871,I2,$K$2:$K$871,">="&(0.95*K2),$K$2:$K$871,"<="&(1.05*K2))>1)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,959
Messages
6,122,476
Members
449,087
Latest member
RExcelSearch

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