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: 8

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
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,224,609
Messages
6,179,873
Members
452,949
Latest member
Dupuhini

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