Formula for repeats + certain criteria

Yin00

New Member
Joined
Oct 22, 2024
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Is it possible to have an formula for this. I want the last column to have a formula that will spit out 'Repeat' if the value in column J matches that of another in column J. But only if they both have 'FG' in column E. Otherwise, it should say 'In Process'. So the only row that should say Repeat is 6 because it has the same number in J as row 2 and they both have FG in E.

1729625929883.png
 

Attachments

  • 1729625723829.png
    1729625723829.png
    22.3 KB · Views: 3

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
How about this?

Red Car.xlsm
EFGHIJKL
2FG1123REPEAT
3FG2124PROCESS
4FG3125REPEAT
5A123PROCESS
6FG4123REPEAT
7B123PROCESS
8A125PROCESS
9FG5126PROCESS
Sheet9
Cell Formulas
RangeFormula
L2:L9L2=CHOOSE((COUNTIF($J$2:$J$9,J2)>1)*(LEFT(E2,2)="FG")+1,"PROCESS","REPEAT")
Sorry, my initial question was wrong, row 2 should also say repeat as you have. But why does row 4 also say repeat? The only time 125 is mentioned again, there is no FG
 
Upvote 0
College grad and new here. I wanted to try this out so please excuse my mess.
 

Attachments

  • Screenshot 2024-10-22 130810.png
    Screenshot 2024-10-22 130810.png
    18.1 KB · Views: 9
  • Screenshot 2024-10-22 133219.png
    Screenshot 2024-10-22 133219.png
    19 KB · Views: 9
Upvote 0
Solution
These both seem to work well!
:confused: You say they both work but they produce different results on the same data.
Which is the correct one for what you want?

@Saikachi
Welcome to the MrExcel board!
When suggesting formulas, please post the actual formula rather than just a picture of it so readers can easily copy it to test. There are several ways ..
  1. Simply copy and paste =IF(IF(LEFT(E2,2)="FG",COUNTIFS(J$2:J2,J2,E$2:E2,"*FG*"),1)>1,"Repeat","Process")

  2. Use the formula code tags at the top of the Reply window. It is the one that says fx/XLS
    Excel Formula:
    =IF(IF(LEFT(E2,2)="FG",COUNTIFS(J$2:J2,J2,E$2:E2,"*FG*"),1)>1,"Repeat","Process")

  3. Post a mini sheet with data and formulas using XL2BB like in post #2
 
Upvote 0
:confused: You say they both work but they produce different results on the same data.
Which is the correct one for what you want?

@Saikachi
Welcome to the MrExcel board!
When suggesting formulas, please post the actual formula rather than just a picture of it so readers can easily copy it to test. There are several ways ..
  1. Simply copy and paste =IF(IF(LEFT(E2,2)="FG",COUNTIFS(J$2:J2,J2,E$2:E2,"*FG*"),1)>1,"Repeat","Process")

  2. Use the formula code tags at the top of the Reply window. It is the one that says fx/XLS
    Excel Formula:
    =IF(IF(LEFT(E2,2)="FG",COUNTIFS(J$2:J2,J2,E$2:E2,"*FG*"),1)>1,"Repeat","Process")

  3. Post a mini sheet with data and formulas using XL2BB like in post #2
When I tested it, it looks like one of the formulas only reads up. So only row 6 would show repeat. The other formula gives repeat for both row 2 and 6. I think the second one that gives repeat on both will be used. But this gives me an option to see what my team prefers! Thank you!
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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