use formula in pop-up window

gwminkl

New Member
Joined
Apr 3, 2018
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
Is it possible to use a formula in a pop-up window to make the message variable

sample.xlsx
ABCDEFGHIJKL
1
2amount 1amount 2amount 3amount 4amount 5total
3100.000.253.755.004.38113.38
434.9845.0018.25398.3318.25514.81
5
6
7One Hundred and Thirteen & 38 Cents Only.
8
9
10
11
12
13=CHOOSE(LEFT(TEXT(G3,"000000000.00"))+1,,"One","Two","Three","Four","Five","Six","Seven","Eight","Nine") &IF(--LEFT(TEXT(G3,"000000000.00"))=0,,IF(AND(--MID(TEXT(G3,"000000000.00"),2,1)=0,--MID(TEXT(G3,"000000000.00"),3,1)=0)," Hundred"," Hundred and ")) &CHOOSE(MID(TEXT(G3,"000000000.00"),2,1)+1,,,"Twenty ","Thirty ","Forty ","Fifty ","Sixty ","Seventy ","Eighty ","Ninety ") &IF(--MID(TEXT(G3,"000000000.00"),2,1)<>1,CHOOSE(MID(TEXT(G3,"000000000.00"),3,1)+1,,"One","Two","Three","Four","Five","Six","Seven","Eight","Nine"), CHOOSE(MID(TEXT(G3,"000000000.00"),3,1)+1,"Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen")) &IF((--LEFT(TEXT(G3,"000000000.00"))+MID(TEXT(G3,"000000000.00"),2,1)+MID(TEXT(G3,"000000000.00"),3,1))=0,,IF(AND((--MID(TEXT(G3,"000000000.00"),4,1)+MID(TEXT(G3,"000000000.00"),5,1)+MID(TEXT(G3,"000000000.00"),6,1)+MID(TEXT(G3,"000000000.00"),7,1))=0,(--MID(TEXT(G3,"000000000.00"),8,1)+RIGHT(TEXT(G3,"000000000.00")))>0)," Million and "," Million ")) &CHOOSE(MID(TEXT(G3,"000000000.00"),4,1)+1,,"One","Two","Three","Four","Five","Six","Seven","Eight","Nine") &IF(--MID(TEXT(G3,"000000000.00"),4,1)=0,,IF(AND(--MID(TEXT(G3,"000000000.00"),5,1)=0,--MID(TEXT(G3,"000000000.00"),6,1)=0)," Hundred"," Hundred and")) &CHOOSE(MID(TEXT(G3,"000000000.00"),5,1)+1,,," Twenty"," Thirty"," Forty"," Fifty"," Sixty"," Seventy"," Eighty"," Ninety") &IF(--MID(TEXT(G3,"000000000.00"),5,1)<>1,CHOOSE(MID(TEXT(G3,"000000000.00"),6,1)+1,," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"),CHOOSE(MID(TEXT(G3,"000000000.00"),6,1)+1," Ten"," Eleven"," Twelve"," Thirteen"," Fourteen"," Fifteen"," Sixteen"," Seventeen"," Eighteen"," Nineteen")) &IF((--MID(TEXT(G3,"000000000.00"),4,1)+MID(TEXT(G3,"000000000.00"),5,1)+MID(TEXT(G3,"000000000.00"),6,1))=0,,IF(OR((--MID(TEXT(G3,"000000000.00"),7,1)+MID(TEXT(G3,"000000000.00"),8,1)+MID(TEXT(G3,"000000000.00"),9,1))=0,--MID(TEXT(G3,"000000000.00"),7,1)<>0)," Thousand "," Thousand and ")) &CHOOSE(MID(TEXT(G3,"000000000.00"),7,1)+1,,"One","Two","Three","Four","Five","Six","Seven","Eight","Nine") &IF(--MID(TEXT(G3,"000000000.00"),7,1)=0,,IF(AND(--MID(TEXT(G3,"000000000.00"),8,1)=0,--MID(TEXT(G3,"000000000.00"),9,1)=0)," Hundred "," Hundred and "))& CHOOSE(MID(TEXT(G3,"000000000.00"),8,1)+1,,,"Twenty ","Thirty ","Forty ","Fifty ","Sixty ","Seventy ","Eighty ","Ninety ") &IF(--MID(TEXT(G3,"000000000.00"),8,1)<>1,CHOOSE(MID(TEXT(G3,"000000000.00"),9,1)+1,,"One","Two","Three","Four","Five","Six","Seven","Eight","Nine"),CHOOSE(MID(TEXT(G3,"000000000.00"),9,1)+1,"Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen")) &IF(RIGHT(TEXT(G3,"000000000.00"),2)>"000000000.00"," & "&RIGHT(TEXT(G3,"000000000.00"),2)&" Cents Only."," Only.")
14
Sheet1
Cell Formulas
RangeFormula
G3:G4G3=SUM(B3:F3)
B7B7=CHOOSE(LEFT(TEXT(G3,"000000000.00"))+1,,"One","Two","Three","Four","Five","Six","Seven","Eight","Nine") &IF(--LEFT(TEXT(G3,"000000000.00"))=0,,IF(AND(--MID(TEXT(G3,"000000000.00"),2,1)=0,--MID(TEXT(G3,"000000000.00"),3,1)=0)," Hundred"," Hundred and ")) &CHOOSE(MID(TEXT(G3,"000000000.00"),2,1)+1,,,"Twenty ","Thirty ","Forty ","Fifty ","Sixty ","Seventy ","Eighty ","Ninety ") &IF(--MID(TEXT(G3,"000000000.00"),2,1)<>1,CHOOSE(MID(TEXT(G3,"000000000.00"),3,1)+1,,"One","Two","Three","Four","Five","Six","Seven","Eight","Nine"), CHOOSE(MID(TEXT(G3,"000000000.00"),3,1)+1,"Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen")) &IF((--LEFT(TEXT(G3,"000000000.00"))+MID(TEXT(G3,"000000000.00"),2,1)+MID(TEXT(G3,"000000000.00"),3,1))=0,,IF(AND((--MID(TEXT(G3,"000000000.00"),4,1)+MID(TEXT(G3,"000000000.00"),5,1)+MID(TEXT(G3,"000000000.00"),6,1)+MID(TEXT(G3,"000000000.00"),7,1))=0,(--MID(TEXT(G3,"000000000.00"),8,1)+RIGHT(TEXT(G3,"000000000.00")))>0)," Million and "," Million ")) &CHOOSE(MID(TEXT(G3,"000000000.00"),4,1)+1,,"One","Two","Three","Four","Five","Six","Seven","Eight","Nine") &IF(--MID(TEXT(G3,"000000000.00"),4,1)=0,,IF(AND(--MID(TEXT(G3,"000000000.00"),5,1)=0,--MID(TEXT(G3,"000000000.00"),6,1)=0)," Hundred"," Hundred and")) &CHOOSE(MID(TEXT(G3,"000000000.00"),5,1)+1,,," Twenty"," Thirty"," Forty"," Fifty"," Sixty"," Seventy"," Eighty"," Ninety") &IF(--MID(TEXT(G3,"000000000.00"),5,1)<>1,CHOOSE(MID(TEXT(G3,"000000000.00"),6,1)+1,," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"),CHOOSE(MID(TEXT(G3,"000000000.00"),6,1)+1," Ten"," Eleven"," Twelve"," Thirteen"," Fourteen"," Fifteen"," Sixteen"," Seventeen"," Eighteen"," Nineteen")) &IF((--MID(TEXT(G3,"000000000.00"),4,1)+MID(TEXT(G3,"000000000.00"),5,1)+MID(TEXT(G3,"000000000.00"),6,1))=0,,IF(OR((--MID(TEXT(G3,"000000000.00"),7,1)+MID(TEXT(G3,"000000000.00"),8,1)+MID(TEXT(G3,"000000000.00"),9,1))=0,--MID(TEXT(G3,"000000000.00"),7,1)<>0)," Thousand "," Thousand and ")) &CHOOSE(MID(TEXT(G3,"000000000.00"),7,1)+1,,"One","Two","Three","Four","Five","Six","Seven","Eight","Nine") &IF(--MID(TEXT(G3,"000000000.00"),7,1)=0,,IF(AND(--MID(TEXT(G3,"000000000.00"),8,1)=0,--MID(TEXT(G3,"000000000.00"),9,1)=0)," Hundred "," Hundred and "))& CHOOSE(MID(TEXT(G3,"000000000.00"),8,1)+1,,,"Twenty ","Thirty ","Forty ","Fifty ","Sixty ","Seventy ","Eighty ","Ninety ") &IF(--MID(TEXT(G3,"000000000.00"),8,1)<>1,CHOOSE(MID(TEXT(G3,"000000000.00"),9,1)+1,,"One","Two","Three","Four","Five","Six","Seven","Eight","Nine"),CHOOSE(MID(TEXT(G3,"000000000.00"),9,1)+1,"Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen")) &IF(RIGHT(TEXT(G3,"000000000.00"),2)>"000000000.00"," & "&RIGHT(TEXT(G3,"000000000.00"),2)&" Cents Only."," Only.")
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
added picture as shapes are not shown in message above
 

Attachments

  • pop-up.JPG
    pop-up.JPG
    125.2 KB · Views: 7
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: use formula in pop-up window
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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