• 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.

Adjust the sequence equation under two conditions

Hany ali

Active Member
hello every one .. good evening , I want Your help to Modify this equation so that it works for two conditions as you see in My Screen ,Right Result In Column E
This Equation what i Used
Code:
=IF(A2="","",COUNTIF($A$2:A2,A2) & " "&IF(ISNUMBER(MATCH(A2,$G$2:$G$4,0)),CHOOSE(MATCH(A2,$G$2:$G$4,0),"Q","K","S"),""))
 

Attachments

  • Hani_2.xlsx
    14.9 KB · Views: 7
  • Untitled.png
    Untitled.png
    29 KB · Views: 8
Last edited:
Hany ali, Good evening.

You didn't tell us your intentions with the formula.

A2 --> =IF(A2="";"";"1 "&IF(B2="Enterance Fees"; IFERROR(VLOOKUP(A2;$G$2:$I$4;3;FALSE);"");""))

Please, tell us if it worked for you.

I hope it helps.
 

Attachments

  • Hani_2--05-03-2021.xlsx
    12.2 KB · Views: 4
THANKS ...I want to sequence continuously, not just 1
I FOUND What I want ,it must be
Code:
=IF(A8="","",COUNTIFS($A$2:A8,A8,$B$2:B8,B8)&IF(B8="Enterance Fees", IFERROR(VLOOKUP(A8,$G$2:$I$4,3,FALSE),""),""))
 
Maybe,

In C2, formula copied down :

=IF(A2="","",COUNTIFS(A$2:A2,A2,B$2:B2,IF(B2="","",B2))&IF((ISNUMBER(MATCH(A2,G$2:G$4,0)))*(B2="Enterance Fees")," "&LEFT(A2),""))

73630
 
Back
Top