Calling the large number and add one VBA Code

Amenolakaky

New Member
Joined
Feb 17, 2022
Messages
14
Office Version
  1. 2016
Platform
  1. Windows
First of all I would like to give a big thanks to all of you specially "DanteAmor" who helped me !

second, New i need to call the largest number from another sheets and add +1, these numbers in sheets named by companies name
I will set formula says; =IF(AND($G$4="ALEX";$H$4="Life");LARGE([Submissiondatabasee.xlsx]Alex!$P:$P;1);IF(AND($G$4="ABK";$H$4="Life");LARGE([Submissiondatabasee.xlsx]ABK!$B:$B;1)
is there any code can it ?

sheet one named "Alex", its range contain 10001, 10002, 10003, i need to call 10003 and add one= the result is 10004" Looked to this sheet based on two logics " Sheet name" and " first number if serial "10"....
sheet two named "abk", its range contain 440001, 440002, 440003, i need to call 440003 and add one= the result is 440004" Looked to this sheet based on two logics " Sheet name" and " first number if serial "440"....
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,214,942
Messages
6,122,367
Members
449,080
Latest member
Armadillos

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