Combine cells but with a twist

eechristaylor

New Member
Joined
Oct 22, 2013
Messages
40
Office Version
  1. 365
Platform
  1. Windows
I am trying to be able to look at some invoice items and be able to tell if on seperate invoices the data I have is below. As you can see job #3575 has tasks 403 and 413 on it and 3785 only has 503 and 3996 has 600 and 800. In order to compare the job number and the task I thinkI need to add a column with both Job#-Task i.e. 3575-403, 3575-414. So how do I set that relationship up where excel knows the task in column c go to the job number above them in column b?

Your help is appreciated.


Invoice #Job #Task
1​
3575​
1​
403​
1​
414​
1​
3785​
1​
503​
2​
3996​
2​
600​
2​
800​
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
If your Jobs are all 4 characters and task numeric, like all your samples, then another way would be as below.

BTW, I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

20 12 12.xlsm
ABCD
1Invoice #Job #TaskJob #-Task
213575 
314033575-403
414143575-414
513785 
615033785-503
723996 
826003996-600
928003996-800
10 
Job-Task
Cell Formulas
RangeFormula
D2:D10D2=IF(C2="","",IF(B1="",LEFT(D1,4),B1)&-C2)
 
Upvote 0
An alternative solution is to use Power Query. Here is the result and Mcode.

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Filled Down" = Table.FillDown(Source,{"Job #"}),
    #"Filtered Rows" = Table.SelectRows(#"Filled Down", each ([Task] <> null))
in
    #"Filtered Rows"

Book3
ABC
1Invoice #Job #Task
213575403
313575414
413785503
523996600
623996800
Table1
 
Upvote 0

Forum statistics

Threads
1,215,719
Messages
6,126,432
Members
449,314
Latest member
MrSabo83

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