VBA If Cell = X, Then Copy Some Columns Into A New Sheet

Status
Not open for further replies.

tuytuy

Board Regular
Joined
Mar 28, 2013
Messages
75
Hi,

Sheet : Section_14
MonthGSM numberGroup nameSubgroup nameName GSM numberUser ref1User Ref2Call dateCall timeTotal volume (KB)ServiceZone/Country/OperatorTariffTypeSupplementary servicesUsage amountCurrencyAccount numberDiscount Indicator
Jan-130470/132024Unfiled - Niet toegekend - Non attribué18-Dec-1215:48:58893Mobile InternetRéduitGPRS national0EUR10736059N
Jan-130470/132024Unfiled - Niet toegekend - Non attribué22-Dec-1211:32:23313Mobile InternetRéduitGPRS national0EUR10736059N
Jan-130470/132024Unfiled - Niet toegekend - Non attribué19-Dec-1203:47:572368Mobile InternetRéduitGPRS national0EUR10736059N

<colgroup><col><col><col span="2"><col><col span="2"><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
Sheet : Section_6
GSM numberGroup nameSubgroup nameName GSM numberUser ref1User Ref2IMEISIM Card NumberHandset BrandHandset TypeAccount number
0470/132024Unfiled - Niet toegekend - Non attribué1.27E+132.10E+12AppleiPhone 410736059
0470/200128Unfiled - Niet toegekend - Non attribué3.54E+142.10E+1225054440
0470/201029Unfiled - Niet toegekend - Non attribué3.54E+142.10E+1225056030

<colgroup><col><col span="2"><col><col span="2"><col><col><col><col><col></colgroup><tbody>
</tbody>
Hi i was trying to write a vba code that would lookup up in the column "Service" if the value was "BlackBerry usage", if yes copy the "GSM number" into a new sheet called "BlackBerry".
And then using this number copy the "Account Number" in the sheet Section_6 to "BlackBerry" in column B.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Status
Not open for further replies.

Forum statistics

Threads
1,214,392
Messages
6,119,255
Members
448,879
Latest member
oksanana

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