Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-29-2024, 01:01 PM
wsnow wsnow is offline Need formula to sequentially look in three columns and return calculation if column is populated. Windows 11 Need formula to sequentially look in three columns and return calculation if column is populated. Office 2021
Novice
Need formula to sequentially look in three columns and return calculation if column is populated.
 
Join Date: Sep 2023
Posts: 24
wsnow is on a distinguished road
Default Need formula to sequentially look in three columns and return calculation if column is populated.

Column A, B, and C may or may not be populated. When they are, it is always a $ amount and always populated in sequence. First A is populated, then at a later date B is populated, then at a later date, C is populated.



I need a formula in column D that checks each column to see if it is populated and return a calculated amount based on the most recently updated field, starting with column C:

If C is populated, D should return the $ amount in C *.88.

If C is not populated, look in column B, and if it is populated, return the amount in B *.88.

If neither B nor C is populated, look in column A and if it is populated, return the amount in column A*.88.

If none of them are populated, D should return "".

This is my first stab at it and get a "too many arguments" error.

=IF(ISNUMBER([@[12-Month Lock-in Amount]]),( [@[12-Month Lock-in Amount]]*.88), IF(ISNUMBER([@[6-Month Estimate]]),([@[6-Month Estimate]]*.88), IF(ISNUMBER([@[30-Day Estimate]]),([@[30-Day Estimate]]*.88)),””))

Thanks.
Reply With Quote
  #2  
Old 08-29-2024, 11:58 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Need formula to sequentially look in three columns and return calculation if column is populated. Windows 10 Need formula to sequentially look in three columns and return calculation if column is populated. Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,915
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Perhaps at the end of the formula

...([@[30-Day Estimate]]*.88),””)))
and only ONE closing ) after the last .88 ?


BTW you seem to be using O365? Could you add that info to your signature ( with the version) please? ( the forum does not allow XL versions higher than 2021 as there are many versions of 365). Thx
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 08-30-2024, 12:40 AM
kvsrinivasamurthy kvsrinivasamurthy is offline Need formula to sequentially look in three columns and return calculation if column is populated. Windows XP Need formula to sequentially look in three columns and return calculation if column is populated. Office 2007
Novice
 
Join Date: Oct 2017
Posts: 12
kvsrinivasamurthy is on a distinguished road
Default

In C2,

=BYROW(A2:C7,LAMBDA(x,IFERROR(88*INDEX(x,AGGREGATE (14,6,COLUMN(x)/(x>0),1)),"")))

Or

=MAP(A2:A7,B2:B7,C2:C7,LAMBDA(x,y,z,IF(z>0,88*z,IF (y>0,88*y,IF(x>0,88*x,"")))))

For other versions in C2 copied down

=IFERROR(88*@INDEX($A2:$C2,AGGREGATE(14,6,COLUMN($ A2:$C2)/($A2:$C2>0),1)),"")
Reply With Quote
  #4  
Old 08-30-2024, 02:14 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Need formula to sequentially look in three columns and return calculation if column is populated. Windows 10 Need formula to sequentially look in three columns and return calculation if column is populated. Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,915
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Why do things easily when doing them the hard way also works?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
Old 09-03-2024, 07:25 AM
wsnow wsnow is offline Need formula to sequentially look in three columns and return calculation if column is populated. Windows 11 Need formula to sequentially look in three columns and return calculation if column is populated. Office 2021
Novice
Need formula to sequentially look in three columns and return calculation if column is populated.
 
Join Date: Sep 2023
Posts: 24
wsnow is on a distinguished road
Default

Turns out I had unneeded ) after each instance of .88, but needed one additional one at the very end. A co-worker spotted the error.
=IF(ISNUMBER([@[12-Month Lock-in Amount]]), [@[12-Month Lock-in Amount]]*0.88, IF(ISNUMBER([@[6-Month Estimate]]),[@[6-Month Estimate]]*0.88, IF(ISNUMBER([@[30-Day Estimate]]),[@[30-Day Estimate]]*0.88, "")))
Reply With Quote
  #6  
Old 09-03-2024, 07:48 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Need formula to sequentially look in three columns and return calculation if column is populated. Windows 10 Need formula to sequentially look in three columns and return calculation if column is populated. Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,915
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Happy to see I was on the right track
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need formula to sequentially look in three columns and return calculation if column is populated. Counting populated cells (range) in one column, that fall between 2 (diff) values in another column SnakeDoctor Excel 17 08-02-2024 08:39 AM
Need formula to sequentially look in three columns and return calculation if column is populated. Whats the correct formula to point to the last populated cell in a column? oscarlimerick Excel 4 03-09-2021 08:00 AM
Need formula to sequentially look in three columns and return calculation if column is populated. Excel / Mail Merge - Return Column Headers for All and Any Columns with Values eduams Mail Merge 1 09-26-2016 07:02 PM
Formula/function to return column names for matching values GiJoe81 Excel 1 06-27-2015 12:13 AM
Need formula to sequentially look in three columns and return calculation if column is populated. Need to search a column for a macth and return a result from a third column pdfaust Excel 2 02-03-2011 03:02 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:51 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft