Vba or formula please

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,840
Office Version
  1. 365
Platform
  1. Windows
I have rows headings in column A, like Batch#, AFE#, Business Unit etc.</SPAN>
one of the question is Child? In cell A7, If user types YES in B7, then the Next cell A8 has "parent#".
Then user has to type Parent # in cell B8</SPAN>
From A8, I used formual, If B7 has Yes than Parent # otherwise Item number,</SPAN>
in A9 I wrote another formaula if A9 is Item number then Serial # otherwise Asset #</SPAN>
and so on. </SPAN>
I am sure there must be a better way, like, if the answer in B7 is Yes then A8 will be Parent # and the rest will move down by one cell, instead of using so many formulas.</SPAN>
I know it could be done by VBA. But I do not know VBA.</SPAN>
Thanks</SPAN>

<TBODY>
</TBODY>
I have rows headings in column A, like Batch#, AFE#, Business Unit etc.</SPAN>
one of the question is Child? In cell A7, If user types YES in B7, then the Next cell A8 has Parent #. </SPAN>
Then user has to type Parent # in cell B8</SPAN>
From A8, I used formual, If B7 has Yes than Parent # otherwise Item number,</SPAN>
in A9 I wrote another formaula if A9 is Item number then Serial # otherwise Asset #</SPAN>
and so on. </SPAN>
I am sure there must be a better way, like, if the answer in B7 is Yes then A8 will be Parent # and the rest will move down by one cell, instead of using so many formulas.</SPAN>
I know it could be done by VBA. But I do not know VBA.</SPAN>
Thanks</SPAN>

<TBODY>
</TBODY>
BATCH #</SPAN>
AFE #</SPAN>
Business Unit</SPAN>
Branch Plant</SPAN>
Dr Obj Acct</SPAN>
Cr Obj Acct</SPAN>
Child?</SPAN>YES</SPAN>
Parent #</SPAN>
Item Number</SPAN>
Serial Number</SPAN>
Asset Number</SPAN>
DPIS (Date Placed In Service)</SPAN>
Lease Expiry Date</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL></COLGROUP>
 
Last edited:

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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