A formula to consider the values of x rows and y columns and fill it to 1 if the two constraint are met and 0 if not

thirudg

New Member
Joined
Sep 9, 2021
Messages
2
Platform
  1. Windows
Hello,

Any suggestion for an excel formula to derive A2, B2, C2, D2 values.



Eg:

CategoryXABCD
P141111
P2 30111
P320110
Y 1332


i need a formula or macro which takes into consideration of both the x and y columns values to fill the A,B ,C and D columns with 1 or 0 so that if i sum the rows and columns i will get the x and y values of the respective rows and columns .
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Welcome to the Forum!

ABCDEFG
1CategoryXABCD
2P141111
3P230111
4P320110
5Y1332
Sheet1
Cell Formulas
RangeFormula
D2:G4D2=--AND(SUM(D$1:D1)<D$5,SUM($C2:C2)<$B2)
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: A formula or macro which takes into consideration of both the x and y values
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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