If in VB Format

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
771
Office Version
  1. 365
Platform
  1. Windows
I am using a sum as follows to grade an result on the quality info that I have been building for so long, but I have been asked to change it slightly<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
=IF(S1<19,S2,IF(S1<22,S3,IF(S1<26,S4,S5)))<o:p></o:p>
<o:p> </o:p>
S2 = Feels like I haven't done enough<o:p></o:p>
S3 = Feels like I have just done enough<o:p></o:p>
S4 = Feels Like I care<o:p></o:p>
S5 = Extra Mile<o:p></o:p>
<o:p> </o:p>
Is there anyway using VB that I can get the above sum done, but if cell K78 or K94 = No, or R59 < 3 then “Feels like I haven’t done enough” is populated in G4. If these are ok then the sum above is run with the outcome to be posted in G4.<o:p></o:p>
<o:p></o:p>
<o:p>The only thing i am unsure about is would this be better written in a module or in the worksheet. </o:p>
<o:p></o:p>
Hopefully this makes sense.
Many Thanks
Gavin
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Thanks

I am useless at doing formulas, especially if statements as i always seem to have errors.

Again Many Thanks
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

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