• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Need Filter by color

Techtrend

Member
Need Filter by color,
Attached is the doc in which yellow marked Row for which the Data is required,

Have clearly mentioned in the document for the formula required,
Required shorting on BUY and sell based on the color.

Narendra
 

Attachments

  • Color-Filter.xls
    23.5 KB · Views: 10
Hello Deepak

I am looking the if conditions based the Color of the Column and just not higher and lower values.

Can you please tell me if we have F and G Col is Green ,then in I Col we then need to display BUY ,

Can you please fix and update Accordingly.

Thanks for your efforts
Narendra
 

Attachments

  • Color-Filter.xls
    24 KB · Views: 5
Hi @Techtrend ,meanwhile @Deepak Sir helps you, could you please check the below.

Enter below mentioned Function in a module.

Code:
Function MyColor(Arg1 As Range) As Long
MyColor = Arg1.Interior.ColorIndex
End Function

Range I2 formula = MyColor(F2)
Range J2 formula = MyColor(G2)
Range K2 formula = IF(I2+J2=86,"Buy",IF(I2+J2=6,"Sell"))
 
Last edited by a moderator:
Hello Deepak

I am looking the if conditions based the Color of the Column and just not higher and lower values.

Can you please tell me if we have F and G Col is Green ,then in I Col we then need to display BUY ,

Can you please fix and update Accordingly.

Thanks for your efforts
Narendra

What i have shared based on the condition you specified and CF which is base for color change & same is still working without any issue may i have the expected output in col I.
 
Hi

I have simplified the sheet,
The match has to be done based only on color as reference only,
I am using the same on a live sheet on which VBA is Not supporting.
 

Attachments

  • Color-Filter-1.xls
    21.5 KB · Views: 7
Hi:

I was playing around a bit for fun, If you could give the following formula in the name range I guess you do not have to format Column E
Code:
=GET.CELL(63,OFFSET(INDIRECT("C"&ROW()),,1,2))

Thanks
 

Attachments

  • Color-Filter-1.xls
    30.5 KB · Views: 10
Back
Top