Code for jumping to next column in row if criteria isn't meet

JasonWilliam

New Member
Joined
May 11, 2021
Messages
10
Office Version
  1. 365
Platform
  1. Windows
I have an excel project I have been working on for my job. I have been looking through the internet trying to find a solution for it, but I cannot find one at this moment.

I need a vba code where if the total in cell N2 is less than 100% it places a 1 in the cell in that row unless 2 or more will fit in the cell then it will add more until it equals 100%. (It puts the value in the N2 cell automatically and the total qty left updates automatically also which is in the K column). If the total would equal more then 100% it needs to jump to the next column for that row.

Is there any solution for this? Or am I just dreaming here?

Here is a picture of my excel project so far...


1682518386214.png
 

Attachments

  • 1682517789769.png
    1682517789769.png
    24.6 KB · Views: 5

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I read this 47 times and still am struggling to figure out what you need accomplished. From your picture N2 appears to be blank? IF true then how does N2 get updated?

-Ross
 
Upvote 0

Forum statistics

Threads
1,215,078
Messages
6,122,997
Members
449,093
Latest member
masterms

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