Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default formulas involving ranges

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default formulas involving ranges

One card number begins with a 5 and the other begins with a 4.

=SUMPRODUCT(--(LEFT(A1:A100)="5"),B1:B100)

=SUMPRODUCT(--(LEFT(A1:A100)="4"),B1:B100)

Biff

"SimonCC" wrote in message
...
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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How prevent formulas to get external references/path to current workbook? Gunnar Johansson Excel Worksheet Functions 1 August 15th 05 10:39 AM
locking formulas?? Rob Excel Discussion (Misc queries) 1 July 27th 05 09:27 AM
Need Formulas for counting multiple conditions OrdOff Excel Worksheet Functions 4 July 3rd 05 06:12 PM
compare unique identifiers in multiple ranges bawilli_91125 Charts and Charting in Excel 1 November 30th 04 06:34 PM
Named dynamic ranges, copied worksheets and graph source data WP Charts and Charting in Excel 1 November 28th 04 05:19 PM


All times are GMT +1. The time now is 03:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"