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
You have not addressed if you want to point to Column B instead of Column C.
but there are a few other issues:
1. You are using the TODAY() function, it is now 1 MAY, so the months change. Is this something you want pertpetuated? as the values change each month.
2. What do you do when the year of today is different from the year of the month value in column B.

Why don't you tell us what your objective is? What is it you are trying to figure out from the data values?
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Dear @awoohaw sir, S, if month changed then current month should be " I " , But pls ignore my formula, I tried right formula but not get desired result .bcas for example if "B-column date goes 01-04-2024 we can't loop if condition long ..

so pls find the solution as your way sir
 
Upvote 0
OR SIMPLY provide solution to this query

multiple same strings in column A, so need order it like I,II,III
 

Attachments

  • TEST1.jpg
    TEST1.jpg
    64 KB · Views: 5
Upvote 0
Is your request to count the difference of months as a ROMAN Numeral?
There is a function called ROMAN in excel 365 but not 2010.

If you want roman, how large will your counts of each value go?

Is there a reason why you want roman numerals?
 
Upvote 0
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

FruitsOrder1.png


FruitsOrder2.png
 
Upvote 0
This is not ROMAN numerals, but it repeats the "I":
Book4
AB
1FRUIT
2appleI
3appleII
4appleIII
5orangeI
6orangeII
7orangeIII
8orangeIIII
9pineappleI
10pineappleII
11pineappleIII
12mangoI
13mangoII
14mangoIII
15mangoIIII
16watermelonI
17watermelonII
18watermelonIII
19pappayaI
20pappayaII
21pappayaIII
Sheet2
Cell Formulas
RangeFormula
B2:B21B2=REPT("I",COUNTIF($A$2:A2,A2))
 
Upvote 0
Hi, I created another solution with the ROMAN function also recommended by awoohaw for Office 365.

The formula used in the new table...
C1: =LET(x,COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1),IF(A1="","",IF(x>0,ROMAN(x),""))) (Range: C1:C25 ...)

FruitsOrder2.xlsx

FruitsOrder21.png


FruitsOrder22.png
 
Upvote 0
There is a function called ROMAN in excel 365 but not 2010.
According to ROMAN function - Microsoft Support the function is available in 2010


The formula used in the new table...
C1: =LET(x,COUNTIF(A:A,A1)-COUNTIFS(A:A,A1,B:B,">"&B1),IF(A1="","",IF(x>0,ROMAN(x),"")))
.. 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
 
Upvote 0
Is your request to count the difference of months as a ROMAN Numeral?
There is a function called ROMAN in excel 365 but not 2010.

If you want roman, how large will your counts of each value go?

Is there a reason why you want roman numerals?
Dear sir, my request not to count the difference of month and month is the reference of column A because two more same fruits come in same , so i preferred column B as a reference to make column C
ROMAN is not NECCESSARY , NUMERICAL ALSO ENOUGH. But if we find the solution for Numeric then i will convert it again Roman with helper column.

If you want roman, how large will your counts of each value go?
S, this part I am struggling so asked help here..

Thanks for your attention to help me sir.
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,838
Members
449,471
Latest member
lachbee

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