Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
ExcelB
 
Posts: n/a
Default how do i show only the last four digits of a credit card number

how do i show only the last four digits of a credit card number
  #2   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default how do i show only the last four digits of a credit card number

=Right(A1,4) will show last 4 digits/characters of number/text in A1

"ExcelB" wrote:

how do i show only the last four digits of a credit card number

  #3   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default how do i show only the last four digits of a credit card number

If the number is in cell A1, use the formula

=RIGHT(A1,4)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"ExcelB" wrote in message
...
how do i show only the last four digits of a credit card number



  #4   Report Post  
Posted to microsoft.public.excel.misc
Don Guillett
 
Posts: n/a
Default how do i show only the last four digits of a credit card number

=right(a2,4)

--
Don Guillett
SalesAid Software

"ExcelB" wrote in message
...
how do i show only the last four digits of a credit card number



  #5   Report Post  
Posted to microsoft.public.excel.misc
Bearacade
 
Posts: n/a
Default how do i show only the last four digits of a credit card number


if your Credit Card number is in A1, you can use Right(A1,4)


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=552847



  #6   Report Post  
Posted to microsoft.public.excel.misc
Bearacade
 
Posts: n/a
Default how do i show only the last four digits of a credit card number


You can also try this:

=CONCATENATE(REPT("XXXX-",3), RIGHT(B3,4))


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=552847

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
adding digits of a number dantee Excel Worksheet Functions 8 March 30th 06 11:05 PM
number changing digits on paste from web apx file field Todd F. Excel Discussion (Misc queries) 0 March 15th 06 03:49 PM
maximum number size/significant digits noel Excel Discussion (Misc queries) 4 February 20th 06 03:42 PM
How do I perform a MOD-10 credit card check in Excel? [email protected] Excel Worksheet Functions 1 February 17th 05 04:51 PM
When we enter a 16 digit number (credit card) the last digit chan. ceking Excel Discussion (Misc queries) 5 December 8th 04 11:45 PM


All times are GMT +1. The time now is 12:01 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"