Small help- in excel

madhanji

Board Regular
Joined
Jan 6, 2021
Messages
72
Office Version
  1. 2010
Platform
  1. Windows
Dear Seniors & Experts,
please request a small help in excel.

Column A have some Fruits and column B has the month ,
i need Result in "C" column based on the month order, not in fruits order.
for example , first time
i tried "Month formula abut not able to get desired result.
pls some one help me.

Thanks in advance.
 

Attachments

  • help.jpg
    help.jpg
    68.4 KB · Views: 19
Hi, see the linked file for a possible solution...

The formula used in the table...
C1: =IF(A1="","",IF(AND(COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1)>0,COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1)<4),REPT("I",COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1)),"ERROR")) (Range: C1:C25 ...)

FruitsOrder.xlsx

View attachment 90701

View attachment 90702
Dear @fjns sir, S, this formula works perfectly in Office 2010.
( i know/tried with countif function and got how many times repeated fruits came on column A only , I DONT know TO covert this to ....)

A BIG thanks to your contribution :)(y)🥪
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
thanks Peter, I wish I could remember where I saw that it was not. I hope a 2010 user will experiment with it for us.

Another page says 2007.
S, ichecked roman function in 2010 and works well
 
Upvote 0
Upvote 0
Hi, I am very glad that the formula works.
If I have enough knowledge, I am happy to help at any time.
 
Upvote 0
.. though if that does produce the results that the OP wants, then it would need to be re-written without the LET function as that is definitely not available in 2010 version
Dear @Peter_SSs , can you help me to re-write the below formula for excel 2010 with roman function, excel 2010 supports "Roman" function but not SUPPORT "LET "

C1: =LET(x,COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1),IF(A1="","",IF(x>0,ROMAN(x),"")))
i searched google to Get Addon for LET OF EXCEL 2010 But not available..
 
Last edited:
Upvote 0
Hi, the formula of #17 without LET function:

=IF(A1="","",IF(COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1)>0,ROMAN(COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1)),""))

FruitsOrder2WithoutLET.xlsx
 
Upvote 0
Dear @fjns sir, S, this formula works perfectly in Office 2010.
If that formula from post #15 works for you, then does this much simpler one also work for you?
I have included the post #15 formula in column C and my suggestion in column D. In col D I have restricted the range to 1000 rows. You can adjust that to be bigger/smaller but I would avoid using whole column references in a formula like that as the formulas will be considerably slower to calculate with whole column references.

madhanji.xlsm
ABCD
1orange30/10/2023IIII
2apple27/05/2023II
3mango30/06/2023II
4grapes1/03/2024IIII
5pappaya28/08/2023II
6orange30/09/2023II
7apple29/10/2023IIII
8pappaya29/11/2023IIII
9mango30/07/2023IIII
10pineapple29/05/2023II
11pineapple29/08/2023IIII
12grapes30/12/2023II
Sheet1
Cell Formulas
RangeFormula
C1:C12C1=IF(A1="","",IF(AND(COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1)>0,COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1)<4),REPT("I",COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1)),"ERROR"))
D1:D12D1=ROMAN(COUNTIFS(A$1:A$1000,A1,B$1:B$1000,"<="&B1))
 
Upvote 0
Solution
If that formula from post #15 works for you, then does this much simpler one also work for you?
I have included the post #15 formula in column C and my suggestion in column D. In col D I have restricted the range to 1000 rows. You can adjust that to be bigger/smaller but I would avoid using whole column references in a formula like that as the formulas will be considerably slower to calculate with whole column references.

madhanji.xlsm
ABCD
1orange30/10/2023IIII
2apple27/05/2023II
3mango30/06/2023II
4grapes1/03/2024IIII
5pappaya28/08/2023II
6orange30/09/2023II
7apple29/10/2023IIII
8pappaya29/11/2023IIII
9mango30/07/2023IIII
10pineapple29/05/2023II
11pineapple29/08/2023IIII
12grapes30/12/2023II
Sheet1
Cell Formulas
RangeFormula
C1:C12C1=IF(A1="","",IF(AND(COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1)>0,COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1)<4),REPT("I",COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1)),"ERROR"))
D1:D12D1=ROMAN(COUNTIFS(A$1:A$1000,A1,B$1:B$1000,"<="&B1))
Dear @Peter_SSs , SORRY ,SORRY , i accidently missed to view /check your formula of "D1" , ITS WORK PERFECTLY ..
Thanks for reminding me and provide the solution .. 👏 👏 👏 👏 🥪


Don't mistaken me ,I can't "mark the solution " of #27 th post.. bcas of previous " solution removed"
 
Upvote 0
Thanks for reminding me and provide the solution
You're welcome.

Don't mistaken me ,I can't "mark the solution " of #27 th post.. bcas of previous " solution removed"
Not quite sure what you are saying but you can mark any solution you like, it is up to you. If you change your mind and decide to mark a different solution, the original solution mark will be removed
 
Upvote 0

Forum statistics

Threads
1,215,530
Messages
6,125,347
Members
449,220
Latest member
Edwin_SVRZ

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