Find additional options

NickYOW

New Member
Joined
Mar 5, 2021
Messages
24
Office Version
  1. 2010
Platform
  1. Windows
I am looking for some assistance, I have a list of tasks and I am trying to join them together of if the user puts an X next sweeping a X will go next to Moping as well, and if they put an X next to cooking an X will go next to the wishes and wipe counters.

so I have the list as column A and the column B is where I would like the X to be
cooking
dishes
mop
sweeping
wipe counters

I have been attempting to put it as a If then statement as macro but unable to get the return in the right box. Any assistance would be great.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi, Welcome to MrExcel board.

Please share an example to understand the requirement.
 
Upvote 0
here is the example if you put (add) in the box under casher for washing floor then sweep floor will say needed, if you (remove) from wash floor from warehouse then Sweep floor will say remove as well.
my basic code I have is
sub add()
dim answer as string
if Range("C6").value = "add" then
Range ("C7").value="required"
answer =msgbox("do you want to add this", vbyesno, otions)
if answer vbyes then
range("C6:C7"). value ="added"
else
range("C6:C7").value= Optional
end if
end if

I would like to have it work on the sheet so if the cell is changed it will run the macro
I have one as well for Remove
sub remove()
if Range("C7").value = "remove" then
Range ("C6").value=" sweep floor required"
answer =msgbox("do you want to remove this", vbyesno, options)
if answer vbyes then
range("C6:C7"). value ="removed"
else
range("C6:C7").value= "added"
end if
end if

this is a basic state to represent what I am attempting the big project has 170 jobs and 29 positions.

current on load I have
each of the cells set to required, optional or blank as needed.

any help I can get for a cross check when the cell is change from one value to another would be helpful.


thanks in advance.
 

Attachments

  • Project.JPG
    Project.JPG
    35.7 KB · Views: 2
Upvote 0
Hi, Welcome to MrExcel board.

Please share an example to understand the requirement.
thank you, please see the example if you put (add) in the box under casher for washing floor then sweep floor will say needed, if you (remove) from wash floor from warehouse then Sweep floor will say remove as well.
my basic code I have is
sub add()
dim answer as string
if Range("C6").value = "add" then
Range ("C7").value="required"
answer =msgbox("do you want to add this", vbyesno, "options")
if answer vbyes then
range("C6:C7"). value ="added"
else
range("C6:C7").value= Optional
end if
end if

I would like to have it work on the sheet so if the cell is changed it will run the macro
I have one as well for Remove
sub remove()
if Range("C7").value = "remove" then
Range ("C6").value=" sweep floor required"
answer =msgbox("do you want to remove this", vbyesno, "options")
if answer vbyes then
range("C6:C7"). value ="removed"
else
range("C6:C7").value= "added"
end if
end if

this is a basic state to represent what I am attempting the big project has 170 jobs and 29 positions.

current on load I have
each of the cells set to required, optional or blank as needed.

any help I can get for a cross check when the cell is change from one value to another would be helpful.


thanks in advance.
 

Attachments

  • Project.JPG
    Project.JPG
    28.2 KB · Views: 1
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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