condition formula

santoshloka

Board Regular
Joined
Aug 31, 2017
Messages
125
BeamS1S1aS2S2aS3S3a
Pier NosP1P2P3P4P5P6
Input-1Input-2
P1-P2S1


Looking for conditional formula

I will change values manually in Input-1 and input-2,if P1-P2 =S1 OR P2-P3=S3a OR P3-P4=S3...etc
Based on below cell values in Input-1,Input-2
find the "Pier Nos" and match the color in "Beam"
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
tR
BeamS1S1aS2S2aS3S3a
Pier NosP1P2P3P4P5P6
Input-1Input-2
P1-P2S1


Looking for conditional formula

I will change values manually in Input-1 and input-2,if P1-P2 =S1 OR P2-P3=S3a OR P3-P4=S3...etc
Based on below cell values in Input-1,Input-2
find the "Pier Nos" and match the color in "Beam"
Try below

Book1
ABCDEFG
1BeamS1S1aS2S2aS3S3a
2Pier NosP1P2P3P4P5P6
3
4Input-1Input-2
5P1-P2S1
Sheet1
Cell Formulas
RangeFormula
B5B5=VLOOKUP(A5,{"P1-P2","S1";"P2-P3","S2";"P3-P4","S3"},2,0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:G2Expression=OR(B2=LEFT($A$5,2),B2=RIGHT($A$5,2))textNO
B1:G1Expression=B1=$B$5textNO
B1:G1Cell Value=$B1=$B$5textNO
 
Upvote 0
Solution
Hey thanks for yr responds

you saved tons of my time..S3a is not working(Color not showing).. remaining all are fine
i dont know where to add this formula B5==VLOOKUP(A5,{"P1-P2","S1";"P2-P3","S2";"P3-P4","S3"},2,0)
Because B5 i will change manually .

i have up to P1 to P350-->B2 TO G2 Same,,can i use same condition,,i just added up to P1 to P6...P350

if possible please share excel file for better understanding
 
Upvote 0
Hey thanks for yr responds

you saved tons of my time..S3a is not working(Color not showing).. remaining all are fine
i dont know where to add this formula B5==VLOOKUP(A5,{"P1-P2","S1";"P2-P3","S2";"P3-P4","S3"},2,0)
Because B5 i will change manually .

i have up to P1 to P350-->B2 TO G2 Same,,can i use same condition,,i just added up to P1 to P6...P350

if possible please share excel file for better understanding
Just copy and paste into excel.
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,585
Members
448,972
Latest member
Shantanu2024

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