Hi friends,
Please help me to solve below issue :
Please see attachment
In the attachment Contract no. is same, but invoice numbers are two, So I want "1" for first invoice rows and "2" for second invoice rows in C Column.
Thank you.
Hi friends,
Please help me to solve below issue :
Please see attachment
In the attachment Contract no. is same, but invoice numbers are two, So I want "1" for first invoice rows and "2" for second invoice rows in C Column.
Thank you.
Last edited by rajeshn_in; 07-20-2019 at 10:43 AM.
Looking at this on an iPad so I can't see your formula.
But, if there are multiple criteria, you need to us COUNTIFS not COUNTIF
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
I didn't use any formula in my sheet, I want formula for C column.
Thank you
Please try at C2
=SUMPRODUCT(1/COUNTIF(B$2:B2,B$2:B2))
or
=SUMPRODUCT(1/COUNTIFS(B$2:B2,B$2:B2,A$2:A2,A$2:A2))
Thank you very much
Dear Friends,
Please solve the below problem. I am unable to clear my problem with previous solution. I am very sorry for reopening this issue.
I want formulas to get same result for lot no. (C columns).
LOT NO.jpg
Thank you.
Last edited by rajeshn_in; 08-10-2019 at 08:06 AM.
Attach the new workbook.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Dear Aligw,
Previous post edited with attachment.
Thank you
There are no expected outcomes and I don't know what you mean by the criteria.
Help us to help you!!!
Please see the anomalies highlighted:
Excel 2016 (Windows) 32 bit
A B C D E F 1CONTRACT NO. INVOICE NO. LOT NO. CRITERIA 2RG / JSSL / 0202 / 19 INV1022019 1BOTH FIRST TIME 3RG / JSSL / 1111 / 19 INV1022019 1BOTH FIRST TIME B is a repeat 4RG / JSSL / 0202 / 19 INV1022019 1BOTH REPEATED 5RG / JSSL / 0202 / 19 INV1022019 1BOTH REPEATED 6RG / JSSL / 0202 / 19 INV1022020 2A - SECOND TIME, B - FIRST TIME A is a repeat
Sheet: Sheet1
You are going to have to explain what you mean, because your outcomes seem to be incorrect.
Contract No. & Invoice Nos. coming first time then Lot No. 1
Lot no should change only invoice number change for that contract no.
Repeated Contract & Invoice Nos (combo) should have same Lot no.
Please provide your expected results.
My expected result is in C column.
Contract No. & Invoice Nos. coming first time then Lot No. 1
Lot no should change only invoice number change for that contract no.
OR
Lot no should change only contract no. change for that invoice no.
Repeated Contract & Invoice Nos (combo) should have same Lot no.
This makes no sense to me at all:
Excel 2016 (Windows) 32 bit
A B C D 1CONTRACT NO. INVOICE NO. LOT NO. CRITERIA 2RG / JSSL / 0202 / 19 INV1022019 1BOTH FIRST TIME 3RG / JSSL / 1111 / 19 INV1022019 1BOTH FIRST TIME
Sheet: Sheet1
I'm out - sorry.
For 0202 contract - Invoice coming first time
For 1111 contract - invoice coming first time
Yes, precisely - so how can they BOTH be the first time in row 3?
I am struggling here. Open the sheet. Please justify the expected answer for the two sets of shaded cells.
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
Glenn Kennedy,
Please check attachment
There nothing there that explains what you are doing. All you have done is move the shading around a bit, as far as I can see!!! The values in column C seem to be unrelated to the comments in column D...
This half works... but does not deliver your expected results after row 8.
Explain with NEW words, the reasons why your expected results are NOT the ones shown in YELLOW in this sheet. Totally baffled.
Please try at C2
=SUMPRODUCT(1/COUNTIF(INDEX(B$2:B2,MATCH(A2,A$2:A2,)):B2,INDEX(B$2:B2,MATCH(A2,A$2:A2,)):B2))
Thank you Bo_Ry & Glenn Kennedy.
I will go with Bo_Ry solution.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks