View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SimonCC SimonCC is offline
external usenet poster
 
Posts: 79
Default formulas involving ranges

If you have cc numbers from A1:A100 and amount from B1:B100, then try:
=SUMPRODUCT(--(VALUE(LEFT(A1:A100,4))5000),B1:B100)
and
=SUMPRODUCT(--(VALUE(LEFT(A1:A100,4))<5000),B1:B100)
for the two different type of cards.
Adjust the reference range as necessary.

-Simon

"Brenda463" wrote:

I am trying to create a formula that will read a range of credit card numbers
and separate out M/C and Visa, then look at the amount in the corresponding
line different column, and put the total into a given spot for visa and
another spot for M/C.
I know that I can seperate using less than or greater than 5000 0000 0000
0000.
What I don't know is will the computer read this number with the spaces as a
number.
I cannot use an array, because the person who plugs in the data is not very
excel literate, and could not handle changing the formula everytime. The
finished report comes in printed format, on a piece of paper.