Solution required.....formula or macro?

Ahmed Fawad

Board Regular
Joined
Mar 1, 2011
Messages
63
Office Version
  1. 2016
Platform
  1. Windows
I need help on the following:
if it can be done by formula or I need a macro?

What will be the formula or the macro?


75137_428735457187386_420770582_n.jpg
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
What are you trying to do....the graphic is way too small to read !!!
 
Upvote 0
May Be You Can Try This . Array Formula: After enter plz drag.


=IF(ISERROR(MATCH(SMALL(IF(NOT(ISBLANK(Sheet1!$C$2:$C$1000)),IF($H$2>0,IF($F$2=$A$2:$A$1000,IF(Sheet1!$D$2:$D$1000>0,Sheet1!$D$2:$D$1000)))),ROWS(Sheet1!$D$2:$D2)),Sheet1!$D$2:$D$1000,0)),"",(INDEX(Sheet1!$C$2:$C$1000,MATCH(SMALL(IF(NOT(ISBLANK(Sheet1!$C$2:$C$1000)),IF($H$2>0,IF($F$2=$A$2:$A$1000,IF(Sheet1!$D$2:$D$1000>0,Sheet1!$D$2:$D$1000)))),ROWS(Sheet1!$D$2:$D2)),Sheet1!$D$2:$D$1000,0)+COUNTIF(Sheet1!$D$2:$D2,Sheet1!$D2)-1,1)))
 
Upvote 0
it works but not taking next customer name for same product :(

If you are after the first customer value meeting the stipulated conditions...

=INDEX($B$2:$B$20,MATCH($F2,IF(ISNUMBER($D$2:$D$20),IF($D$2:$D$20>0,$A$2:$A$20)),0))

which you need to confirm with control+shift+enter, not just enter.
 
Upvote 0
I need to take all customers in a row who has the same product required.... it'll be not more than 5....
 
Upvote 0

Forum statistics

Threads
1,223,104
Messages
6,170,126
Members
452,303
Latest member
c4cstore

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