formula based on multiple condition

abdelfattah

Well-known Member
Joined
May 3, 2019
Messages
1,429
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
hello
i need formula about this
If a1 is equal to 5, the cell B1 is written in it basic, and the four cells underneath write a sub in them, and if a1 is written in it 4, b1 remains written in it essential, and the three cells below it are written in them sub. And so on briefly what result in column b based on number on a1 always in b1= basic is fixing not variable the variable about "sub" changes based on number if number 4 the "sub" equal 3 times number is 5 the sub 4 times

for more explenation i write in a1 and result in column b based on number
ا22.JPG

33.JPG



55.JPG
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
if is possible by code is ok and adjusting a simple when i write in any cell in column a not only a1
 
Upvote 0
In B1
=IF(A1<>"","Basic","")
In B2 copied down as far as needed
=IF(ROW()<=A$1,"SUB","")
 
Upvote 0
hi, Fluff
i would that if i write in any cell in column a gives me result like this
55.JPG
 
Upvote 0
sorry Fluff if i don't specify from the beginning i was to be like formula of Eric or code
 
Upvote 0

Forum statistics

Threads
1,215,062
Messages
6,122,923
Members
449,094
Latest member
teemeren

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