Batch Naming

Minaru

New Member
Joined
Sep 20, 2010
Messages
25
Hello everyone and thanks in advance for your help.


This is what I'm trying to do: I have a sheet that is been populated with information from several places within the work book. What I need to do is to be able to have the sheet create the name of the batch depending on if the day have any payments if not leave it blank
Code:
Column A      -      Column B
Batch name   -      $$$$$$$
(Blank)       -          (Blank)
7A             -         10.00
7B             -         20.00
(Blank)       -          (Blank)
(Blank)       -          (Blank)
7C             -          15.00
etc

So the batch name should start with 7 + a letter, so 7a, 7b, 7c, 7d, etc.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
The following formula in A2 will give you the desired output (although you haven't said what should happen after 7Z). For some reason, I can't get this to work in conjunction with testing the value in column B :confused:

(confirm with ctrl+shift+enter)

Code:
="7"&CHAR(CODE(RIGHT(INDIRECT(ADDRESS(MAX(IF(LEFT(A$2:A2)="7",ROW(A$2:A2))),1))))+1)
 
Upvote 0
Yeah I didn't because in the must usual cases there is not pass Z.

The Batches are renew every month and as there are up to 31 days in them what we do is use a 7 for the first full alphabet set and then 8 and start the alphabet again this will not go pass E as there is only 1 batch per day.

If I could get it to fill the cell with the letter on its own, say A, B, C, D, etc, I could work on the code for the rest I just can't see to figure out how to use letters to arrange it; if it would have been numbers a simple loot would have been sufficient.

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,448
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top