LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default adding a,b,c,etc to end of item in call

Sort column A in ascending order. Insert column B ...use formula in row 2:
IF A2=A1,1,"")...in row 3 use IF(A3=A2,B2+1,"")...repeat row 3 formula to
the bottom of your data. Insert column C...use formula
=concatenate(a1,"-",b1). This will make each of your account numbers unique.
You can work further to substitute your added numbers for text...1=a, 2=b,
etc. using vlookup. Don't forget to turn your formulated numbers into values
(copy, paste special, values option).

"Dave Peterson" wrote:

If you can always know that you want to sum every third column of a range, then
I bet some variation of Ron's suggestion will work (depending if you're starting
with the 1st, 2nd, 3rd column in the range).

But if you're inserting a single column and want to include that with your sum,
I'd do something like this:

Insert a new Row to be used as an indicator row--should this column be included
in the sum. Put Y if you want to include it in the sum--anything else and it'll
be skipped.

Then you can use a formula like:

=SUMPRODUCT(--($A$1:$J$1="y"),A2:J2)

I only went from A:J, though. And it sums the numbers in row 2 that have that Y
in row 1 of the associated column. If you insert a new column, just remember to
adjust that new column's indicator cell.

I'd use a helper column (say column C) and put this formula in C1 and drag down:

=LEFT(B1,LEN(B1)-4)&CHAR(COUNTIF($A$1:$A1,$A1)+64)&right(b1,4)
(for upper case letters)

=LEFT(B1,LEN(B1)-4)&CHAR(COUNTIF($A$1:$A1,$A1)+96)&RIGHT(B1,4)
(for lower case letters)

This will fail when you get to the 27th repeat.


RHD3 wrote:

I have two columns. Col A is "acct nos" where some acct nos are repeated 2,3
or 4 times and some only twice. The second column is random file names, such
as 0001325.jpg. I would like to be able to to rename the 2nd column with the
1st column acct no name and add an a,b,c, etc(however many times the account
no is listed). my "new" name would be something like 0100252401a.jpg,
0100252401b.jpg, etc.
Thanks


--

Dave Peterson

 
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
sort bar chart in excel BuriedInSpreadSheets Charts and Charting in Excel 6 May 31st 07 04:12 PM
Calculating and Adding Hours, Minutes, and Seconds in a CALL LOG EmanJR Excel Worksheet Functions 1 August 3rd 06 03:47 PM
Fill in form to type Item descrictions and costs and fill in funct cradino Excel Worksheet Functions 0 July 16th 06 08:44 PM
Need to sum up numerous columns in different worksheet into 1 devil135 New Users to Excel 3 May 26th 05 03:32 PM
Linking Several Worksheets to One Worksheet TangentMemory Excel Discussion (Misc queries) 1 May 10th 05 11:37 PM


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

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

About Us

"It's about Microsoft Excel"