Count & Lookup Together with Multiple Range

SAXON10

Board Regular
Joined
Jun 1, 2017
Messages
109
Hi,

I am trying to count based on the lookup multiple ranges.

Example;

In data sheet code "1111" contain count 5 and result is "WIN" against "ENG" . In Sheet-2 code "1111", I have 11 row, formula fill the result first

5 row "WIN" and rest of the row is blanks.

File attached for your reference.

Any help much appreciate

https://www.dropbox.com/s/zl1k8zj8bke9ach/count.xlsx?dl=0


https://www.dropbox.com/s/ugt8v6d2eaxqepc/Capture2.PNG?dl=0



DATA
CODETEAMCOUNTRESULT
1111ENG5WIN
1115BAN4NR
1116SA3WIN
6666PAK6LOSS
4856IND1DRS
2848WI1DRS+R
2111NZ1DRS


<colgroup><col span="4"></colgroup><tbody>
</tbody>

DESIRED RESULT
CODETEAMRESULT
1111ENGWIN
1111ENGWIN
1111ENGWIN
1111ENGWIN
1115BANNR
1115BANNR
1115BANNR
1115BANNR
1115BAN
1111ENGWIN
1111ENG
1111ENG
1111ENG
1111ENG
1111ENG
1111ENG
1116SAWIN
1116SAWIN
1116SAWIN

<colgroup><col><col span="2"></colgroup><tbody>
</tbody>
 
Last edited:

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Maybe...

Formula in Sheet2 C3 copied down
=IF(COUNTIFS(A$3:A3,A3,B$3:B3,B3)<=SUMIFS(Data!C:C,Data!A:A,A3,Data!B:B,B3),VLOOKUP(A3,Data!$A:$D,4,0),"")

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,216,030
Messages
6,128,411
Members
449,449
Latest member
Quiet_Nectarine_

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