excel - Find customers who spent above a certain amount -


i use vba search through list of customer names , amount have spent (in columns & b respectively), , return results list names (& corresponding amount) of have spent more $500, in 2 other columns in same sheet, columns d & e.

any appreciated. thank you!

a loop within subroutine work:

i = 1 j = 1 worksheetfunction.counta(columns(1))     if cells(j, 2) > 500 cells(i, 3) = cells(j, 1): = + 1 next j 

this prints names using same logic can print corresponding numbers. luck.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -